Dear All,
Best Regards
Jagatpal Singh
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Ravi ShekharPosted May 4, 2013, 3:44 AM
http://www.c-sharpcorner.com/UploadFile/Srivi/remove-duplicate-records-in-sql-server-2005/
Satyapriya NayakPosted May 3, 2013, 11:03 PM
FROM emp
GROUP BY name having count(*)>1
DELETE
FROM MyTable
WHERE ID NOT IN
(
SELECT MAX(ID)
FROM MyTable
GROUP BY DuplicateColumn1, DuplicateColumn2, DuplicateColumn3)