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


Please Help Members By Posting Answers For Below Questions

Can multiple columns be used in group by in oracle?

626


What are the logical operations?

768


What is the difference between a primary key & a unique key?

676


i have a question here... As of my knowledge, when we apply an index (b-tree)on a column, internally it arranges the data in b-tree format and do the fetching process correspondingly... and my quetion is... How a bit-map index arranges the data internally when applied on a column?IS it in b-tree format or whatelse?

1556


What are the different windows events activated at runtime ?

2475






What is the best way to do multi-row insert in oracle?

652


What is oracle join syntax?

639


What are named parameters?

682


Can we write insert statement in function in oracle?

653


What is a trigger oracle?

660


When do we use group by clause in a sql query?

659


How many categories of data types?

656


How can we find out the duplicate values in an oracle table?

690


Explain an exception?

636


How to estimate disk space needed for an export job?

656