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 cross join example?

556


What does count (*) mean?

530


What is on delete set null?

570


What is bitemporal narrowing?

739


What is the difference between sum and count in sql?

528






What are the types pl/sql code blocks?

612


How many parts of a pl sql block are optional?

523


What is an oracle stored procedure?

594


What is difference between ms sql and mysql?

479


what is log shipping? : Sql dba

615


Explain scalar functions in sql?

587


What is difference between joins and union?

535


How exception is different from error?

545


What is sqlservr exe?

482


How to place comments in pl/sql?

611