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

How does postgresql compare to mysql?

573


Why stored procedures are faster than query?

566


Mention what is the function that is used to transfer a pl/sql table log to a database table?

484


Explain ttitle and btitle.

668


Explain two easy sql optimizations.

602






How do you update a table in sql?

519


What is sql deadlock?

562


How do you rank data in sql?

515


What are database links used for?

591


What is sql prepared statement?

542


Does mysql_real_escape_string prevent sql injection?

537


Describe different types of general function used in sql?

530


What is a native sql query?

494


How do you delete a table?

535


Can we commit in trigger?

543