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

How do I manually create a database in oracle?

0 Answers  


Explain the characteristics of oracle dba?

0 Answers  


Explain the blob datatype?

0 Answers  


HOW TO CONVERT ORACLE TABLE DATA (RECORDS)INTO EXCEL SHEEET?

3 Answers  


What happens if you use a wrong connect identifier?

0 Answers  






How to calculate date and time differences in oracle?

0 Answers  


What is a nvl function? How can it be used?

0 Answers  


why should i declare foreign key constraint as self relation instead of binary relation in tables ?

0 Answers   Oracle,


What are data pump export and import modes?

0 Answers  


i have a table and it has constraints and i want to get "ALTER TABLE table_name ADD CONSTRAINT constraint_name constraint type" this code must be in string type please help me if you want, i can give more explainings

2 Answers  


Table1- have two column filename data AFGDFD-20112011 hi how r u bsdasd-23042011 name shoud be in bold Now i want output like filename data AFGDFD hi how r u bsdasd name shoud be in bold Kindly answer this

3 Answers   HCL,


query optmization techniques and quwry analyser+projects+ppts

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)