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

Explain oracle 12c new features for developers?

540


How to assign a table row to a record variable?

582


What is the difference between view and materialized view in Oracle?

608


What are a query and state the different types of queries and their uses?

511


What is the data pump export utility?

644






What is the purpose of save points in oracle database?

545


Explain an integrity constrains?

700


Is there an oracle sql query that aggregates multiple rows into one row?

544


What is a named program unit?

580


How to create a stored procedure in oracle?

575


How can I combine multiple rows into a comma-delimited list in oracle?

582


What are the differences between interval year to month and interval day to second?

553


How to create additional tablespaces for an new database?

571


What are the limitations of check constraint?

573


How to get last row id?

557