Thursday, 7 April 2016

Find Duplicate Records in a SQL table

SELECT   empno, ename, COUNT (*)
    FROM emp
GROUP BY empno, ename

  HAVING COUNT (*) > 1

No comments:

Post a Comment