Write an SQL Query to
Delete Duplicate records from a table using ROWID.

Answer Posted / swati

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>)

Is This Answer Correct ?    19 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do you know what are user profiles in apps. Any examples you can give?

660


what is pay run id ?

1708


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.

2462


Explain what are the tables of auto invoice?

647


Is soa a part of oracle fusion middleware?

607






What are the Standard Reports and Forms in HRMS?

1770


tell my any difficult situtation you solved in your experience in your company?

1866


Explain oracle apps architecture.

767


Can we create tables in apps schema?

622


is it possible to run the interface without using oracle apps?

1516


What is count(*) from po_vendors(any table)?

641


Can you define an erp system?

678


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

3078


Can u give the Documentation of Custom.pll in oracle apps

2993


In oracle application how do you debug or trace errors?

639