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

Answer Posted / edara satish

delete from
<<table_name>>
where rowid in
(select a.rowid
from <<table_name a,table_name b>>
where a.colname = b.colname
b.colname2 = b.colname2
......
...
a.colnamen = colnamen
order by .... desired colnames)

Is This Answer Correct ?    2 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between sap and oracle?

653


What are the different types of trigger and explain its various uses and functions?

644


What is a view and how is it different from a table?

635


what is the difference between substr and instr function in oracle?

676


How to define an anonymous block?

712






How to recover a dropped table in oracle?

685


How to assign values to variables?

679


Can you have more than one content canvas view attached with a window ?

1899


Explain the use of rows option in imp command.

673


Does oracle partitioning improve performance?

640


11. Display the client number and name and the client number and name of the person who referred that client.

1996


What are the set operators union, union all, minus & intersect meant to do?

638


What is oracle thin client?

620


How to create a single index for multiple columns?

645


How i can handle exception in large code like 1000 line without distrubing the code or without exception handler sction?

2833