Thursday, 7 April 2016

How to Delete duplicate Records from the table in SQL

DELETE FROM emp
      WHERE ROWID NOT IN (SELECT   MAX (ROWID)
                              FROM emp
                          GROUP BY empno);

1 comment: