I have a table with what I consider duplicate records. Data in all columns are duplicate except for the date column, meaning that duplicate data was entered on different dates and those dates were stored along with the data.
I want to delete the records except for most recent one. I can select the client ID field and the max(date field) to determine the ones I want to keep, but how do I determine the ones to delete. There are often more than two duplicates, so the min(date field) doesn't do it.
Any suggestions or guidance will be appreciated!
I use:
Microsoft SQL Enterprise Manager 8.0 running on Windows XP SP2
I want to delete the records except for most recent one. I can select the client ID field and the max(date field) to determine the ones I want to keep, but how do I determine the ones to delete. There are often more than two duplicates, so the min(date field) doesn't do it.
Any suggestions or guidance will be appreciated!
I use:
Microsoft SQL Enterprise Manager 8.0 running on Windows XP SP2
Comment