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 about functional dependency and its relation with table design?

550


What are the different editions of oracle?

588


Can sub procedure/function be called recursively?

530


What view(s) do you use to associate a users SQLPLUS session with his o/s process?

1898


How is it different from a normal table?

577






Her departmandaki isçilerden empno' su ikinci sirada olan isçilerin empno, deptno, hiredate, sira_no bigilerini döndüren sorguyu yaziniz?

1561


How do I reset a sequence in oracle?

588


How do I know if oracle is installed on windows?

484


What do you mean by merge in oracle?

589


What is the difference between count (*), count (expression), count (distinct expression)?

553


What is the relationship among database, tablespace and data file?

533


How to write a query with a right outer join in oracle?

609


How to store only time; not date and time?

555


How to write a left outer join with the where clause in oracle?

623


How to load a large xml file?

578