how to delete all duplicate records from a table using
subquery?

Answer Posted / sunil

delete emp where empno not in(select distinct empno from emp);

For example we have duplicates in empno column then write
query like above...whatever column u want u can write..

Is This Answer Correct ?    0 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is rowid and rownum in oracle?

536


Explain the use of record length option in exp command.

550


How do I start tns listener?

537


What is the use of oracle?

544


What do you mean by merge in oracle and how can you merge two tables?

520






Please explain drop constraint oracle?

623


Give the various exception types.

540


How do I manually create a database in oracle?

537


How to convert a date to char in oracle? Give one example.

583


how to clone 9i Database on to 10g Database.

1820


What is the difference between the Oracle ODBC driver and a Microsoft ODBC (Open Database Connectivity) Driver?

606


Explain a synonym?

594


What is the difference between postgresql and oracle?

503


What is BBED in Oracle?

682


What is a partition in oracle?

541