1) DELETE FROM EMP E1
WHERE ROWID >(SELECT min(ROWID)
FROM EMP E2
WHERE E1.EMP_ID = E2.EMP_ID);
2) DELETE FROM EMP E1
WHERE E1.EMP_ID IN (SELECT E2.EMP_ID
FROM EMP E2
WHERE E1.EMP_ID = E2.EMP_ID
AND E1.ROWID > E2.ROWID);
Ur's
AmarAlam
The main idea is to help the Oracle Technical community and one point store most of the technical solutions. If you have good content that you think can be posted that is not present in this blog, shoot a email to oraclebyamar@gmail.com
1 comments:
Post a Comment