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
What is a value set? List its various types.
List the various types of value set.
What are the benefits of using soa architecture?
Hi, Anybody please send me the Oracle APPS 1i technical interview questions (Real time) as wel as sample resume also?
How can we import the data into a database using sql * loader?
How is choreography different from orchestration?
Tell me how to debug the report?
what is the difference between request group and request security in oracle apps?
Plz anybody send me Technical specification for AP Interface
CAN YOU CUSTOMISE THE COUTOMISE CUS_TOP
List the types of flexfield?
Tell me how to find the custom directory in front end?
Do you know what is applysys in oracle application database schema, what is apps?
Can you differentiate between mediator and osb?
How do you register report in oracle apps?