Write an SQL Query to
Delete Duplicate records from a table using ROWID.
Answer Posted / bharath
1.SELECT ROWID FROM TABLE T1
WHERE ROWID NOT IN (SELECT MIN(ROWID)
FROM TABLE T2 WHERE T1.KEY=T2.KEY);
THIS QUERY IS USEFUL WHEN WE HAVE A KEY VAL.
2.
i.CREATE TABLE NEW AS SELECT DISTINCT * FROM OLD;
ii.DROP TABLE OLD;
iii.RENAME NEW TO ORIGINAL;
THIS IS WHEN WE APPLY TO DELETE DUPLICATE ROWS..
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
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.
Which oracle apps version you are very confident in?
Can we create tables in apps schema?
Tell me how to find the custom directory in front end?
How to create a purchase order without a requisition?
Is soa a part of oracle fusion middleware?
What do you understand by soa?
What do you understand by a set of books?
What are the different components you should consider while defining a responsibility in oracle apps?
what is global tempory table?
can we use look up type instead of a pofile option?or valueset?is it possible how?
If we have a repeated record in a table. But the repeated record how i can transfer from table to nested table?
Tell me where we find the status of order information?
Can you define an erp system?
testing tools?