how to find find & delete duplicate rows from two different
tables?
Answer Posted / pravin jadhav
delete from table_name where rowid not in (select max(rowid) from table group by
duplicate_values_field_name);
or
delete duplicate_values_field_name dv from table_name ta where rowid <(select min(rowid) from
table_name tb where ta.dv=tb.dv);
Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
What is parameterized cursor in oracle?
How to change system global area (sga) in oracle?
What is a static data dictionary in oracle?
Why should I use oracle database?
normally database take to refresh time 2 hours. but client asked iwant to refresh with in 5 min that same database. do you have any option in BO and Oracle? explain me briefly...kavi
What is snapshot is too old? Give and example for better understand.
How to enter a new row into a table interactively?
Explain the dml?
How to create a new tablespace in oracle?
How to recover a dropped table in oracle?
What is the usage of synonyms?
What is the relation of a user account and a schema?
Explain how are indexes update?
what is port in oracle? how is it related to database application.
Is there any way to find out when one specific table/view/M-view is used last time. i.e. when one specific object is used in any SELECT statement.