Delete duplicate records in the emp table.

Answer Posted / ch. nageswar subudhi

For delete the DUPLICATE RECORD from Table by using this
Query:

DELETE FROM EMP E
WHERE E.ROWID <>(SELECT MIN(ROWID) FROM EMP E2 WHERE
E.EMP_NO=E2.EMPNO);

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is sqlcommand?

546


Why functions are used in sql?

506


Does mysql support pl sql?

615


What is difference between primary and secondary key?

509


what are rollup and cube in t-sql? : Transact sql

654






How to display the records between two range in Oracle SQL Plus?

634


What is column?

543


How do you drop a trigger?

535


What is trigger in sql?

573


What are all the different normalization?

552


What is the primary use of normalization?

515


Can delete statement be rollbacked?

518


What is difference between sql and oracle?

552


Why stored procedure is faster than query?

512


how can we repair a mysql table? : Sql dba

534