Dear All,
Best Regards
Jagatpal Singh
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Satyapriya NayakRank #47 · 31.5K reputationPosted May 3, 2013, 7:03 PM EDT
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)
Ravi ShekharRank #673 · 3.6K reputationPosted May 3, 2013, 11:44 PM EDT
http://www.c-sharpcorner.com/UploadFile/Srivi/remove-duplicate-records-in-sql-server-2005/