Possible Duplicate:
How to delete duplicate rows with SQL?
I have a table with no primary key and a column with duplicate entries. I want to delete all duplicates keeping one entry in the table. Please help
Possible Duplicate:
How to delete duplicate rows with SQL?
I have a table with no primary key and a column with duplicate entries. I want to delete all duplicates keeping one entry in the table. Please help
Create Stored procedure and inside of procedure:
If you have problem then I have to write sp for you.
Since you are using SQL Server 2005+, you can use CTE to perform this:
Use Row_Number function with Partition By all fields and keep only the rows with RN = 1.