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
In hierarchical structure of a database? we have write query from where we should start?
List of all the modules under Manufacturing, Finance and Distribution in oracle applications?
how can develope the po variance and po summary report? with tables mandatory columns and query please?
tell me the scenarios of the independent in reports
Hi Friends this is preetham, i am searching for job on oracle apps(technical) i put 3 years fake exp, so any one please could you help me for realtime interview questions and 9739782164 this is my no srpsrp777@gmail.Com please guys please provide your no for contact i have a doubts i want to clarify
What is a value set? List its various types.
Can you define an erp system?
Tell me how to find the custom directory in front end?
What is a flexfield? List out its types.
do you know is it possible to run the interface without using oracle apps?
What do you understand by soa?
what is pay run id ?
Tell me where we find the status of order information?
In which tables receopt application form Appliy to field Value will come. I know one table i.e, ra_customer_trx.trx_number. Could U please any one tell me other than this except(ra_customer_trx and ar_payment_schedules_all tables). plz mentioned tables_name.Column_name.
Can you differentiate between mediator and osb?