I have a table with several integers as primary key. One of them is a counter. I need to remove the counter from the key.
Removing counter from the key will make many rows duplicates (with different counter values but all other key elements the same).
I need a query that will delete all duplicates and leave only the row with the highest counter value. Any help is appreciated.