Write an SQL Query to
Delete Duplicate records from a table using ROWID.
Answer Posted / amit bhatnagar
Swati is cool. buth her queries are correct. you can either
take rowid >with subquery fetching minimum (rowid) else
Rowid < with subquery fething maximum (row id)
DELETE FROM <table_name> T1
WHERE T1.ROWID > (SELECT MIN(T2.ROWID)
FROM <table_name> T2
WHERE T2.<common column name> = T1.<common
column name>)
----------------------------
DELETE FROM <table_name> T1
WHERE T1.ROWID < (SELECT MAX(T2.ROWID)
FROM <table_name> T2
WHERE T2.<common column name> = T1.<common
column name>)
Good job Swati.. :)
Is This Answer Correct ? | 15 Yes | 6 No |
Post New Answer View All Answers
Do you know what is applysys in oracle application database schema, what is apps?
Can you define an erp system?
please any one provide the oracle erp technical interview questions on modules(PO,AP,AR,INV,GL,OM)wise to my mail id..narendra_609@yahoo.co.in
Tell me where we find the status of order information?
In support project one ticket alloted which steps follows manualy tell me ?
What is sca and how is it useful?
What is a flexfield? List out its types.
what are the prerequisites for costing transactions?
List of all the modules under Manufacturing, Finance and Distribution in oracle applications?
What is count(*) from po_vendors(any table)?
Hi, Anybody please send me the Oracle APPS 1i technical interview questions (Real time) as wel as sample resume also?
What are do's and dont's of Interface?
Can u give the Documentation of Custom.pll in oracle apps
what are the different transaction clauses in AR?
What does appl_top directory contain?