how to find find & delete duplicate rows from two different
tables?

Answers were Sorted based on User's Feedback



how to find find & delete duplicate rows from two different tables?..

Answer / 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

how to find find & delete duplicate rows from two different tables?..

Answer / paks

using rownum .


Select * from
(Select name,id, Row_number () over (partition by name order by id desc) rn from tblname)
Where rn=1;

Is This Answer Correct ?    2 Yes 3 No

how to find find & delete duplicate rows from two different tables?..

Answer / k.sailesh

We can find duplicate rows from two tables by using select *
from table name. it displays all the values repeated and unique.
We can delete duplicate rows by using Primary key constraint.

Is This Answer Correct ?    3 Yes 17 No

Post New Answer

More Oracle General Interview Questions

1) What is ONE_SIZE_FITS_ALL approach? 2) Explain the Common & Variable Header of DATA FILE? 3) What are the Drawbacks to using OMF DB? and the Advantages? 4) List out the Advantages of Undo T.spaces over the Undo SEGMENT? 5) Difference between the Temporary tablespace with TEMPFILE and the Tablespace with TEMPORARY Keyword? 6) What are the situation extents are freeing for reuse.

0 Answers   TCS,


 What are the oracle DML commands possible through an update strategy?

0 Answers   Informatica,


What is Database Buffers ?

1 Answers  


How to create lov dynamically at runtime & attach to text field?

0 Answers  


25. Display the client number and the value of the highest value order placed by that client.

2 Answers   Wipro,






1) Does oracle have any table which contain all the exceptions and it's code internally?

0 Answers   CTS,


How translate command is different from replace?

0 Answers  


What is MTTR advisor in Oracle?

0 Answers   MCN Solutions,


What is difference between truncate and delete?

0 Answers  


Is oracle a language?

0 Answers  


How do I know if oracle client is installed on windows?

0 Answers  


How to convert characters to dates in oracle?

0 Answers  


Categories
  • Oracle General Interview Questions Oracle General (1789)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)