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 privilege is needed for a user to create indexes in oracle?
How to define a data source name (dsn) in odbc manager?
What is a Garbage Collection? and what is full recursive Garbage collection?
What happens to the current transaction if a ddl statement is executed?
Difference between oracle's plus (+) notation and ansi join notation?
various types of hints and their usage
What are operators in oracle?
What are the different types of database objects?
What is meant by recursive hints in oracle?
What is a schema in oracle?
What is a data dictionary and how can it be created?
How to import one table back from a dump file?
What is an Oracle Instance?
What would you do with an in-doubt distributed transaction?
What is a tns file?