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
What is the max number of columns in an oracle table?
How view is different from a table?
How can windows applications connect to oracle servers?
what are actual and formal parameters?
How to connect the oracle server as sysdba?
20. Using a set operator, display the client number of all clients who have never placed an order.
What is an anonymous block?
How to return top 5 rows in oracle?
Using the relations and the rules set out in the notes under each relation, write table create statements for the relations EMPLOYEE, FIRE and DESPATCH. You should aim to provide each constraint with a formal name, for example table_column_pk.
What is bind variable in oracle 11g?
How do you find out from the RMAN catalog if a particular archive log has been backed-up?
Why do I get java.lang.abstractmethoderror when trying to load a blob in the db?
Is there any function in oracle similar like group_concat of mysql?
Difference between hot backup vs. Cold backup?
Explain mutating triggers.