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
Can you explain the difference between architecture followed in 10g & 11g?
please send me forms, xml pulisher questions,answers
How is choreography different from orchestration?
Which oracle applications pl/sql standard apis you are familiar, have you used most of them?
What do you understand by soa and what are the benefits of using this architecture?
What do you understand by a set of books?
WHAT IS CUSTOM VIEW AND CUSTOM COMPONENT?
how can develope the po variance and po summary report? with tables mandatory columns and query please?
How can you achieve loose coupling in soa framework?
tell my any difficult situtation you solved in your experience in your company?
Hi, Anybody please send me the Oracle APPS 1i technical interview questions (Real time) as wel as sample resume also?
Which oracle apps version you are very confident in?
Tell me where we find the status of order information?
how to print multi lay outs,muti currency,muti language in xml publisher
CAN YOU CUSTOMISE THE COUTOMISE CUS_TOP