Subhash Sharma

Subhash Sharma
Subhash Sharma

This is Subhash Sharma(Software Engineer) Blog

Welcome to this blog and find every solution.............

Search This Blog

Software Engineer(Subhash Sharma)

Software Engineer(Subhash Sharma)
Software Engineer
Showing posts with label delete duplicate data from Table. Show all posts
Showing posts with label delete duplicate data from Table. Show all posts

Friday, March 12, 2010

delete duplicate data from Table

Note : You must have (Identity key) (EmpId) field in the table.

DELETE
FROM emp
WHERE empID NOT IN
(
SELECT MAX(empID)
FROM emp
GROUP BY empname)