DELETE FROM EMPLOYEES WHERE ROWID NOT IN
(SELECT MIN(ROWID)
FROM EMPLOYEES
GROUP BY LAST_NAME ) ;
(SELECT MIN(ROWID)
FROM EMPLOYEES
GROUP BY LAST_NAME ) ;
Ehab Sayed working as Oracle Applications DBA. I created this site to share my experience and knowledge i got in Oracle Applications DBA field. I’m sure you will find so much useful stuff here.