Write an SQL Query to
Delete Duplicate records from a table using ROWID.
Answers were Sorted based on User's Feedback
Answer / koti
Ganesh ,You are right very good.
delete from emp t
where rowid != ( select min(rowid)
from empno
where empno = t.empno );
---------And other answers are not right .
| Is This Answer Correct ? | 15 Yes | 16 No |
Answer / madhuapps
delete from t1 tl
where tl.rowid >
( select min(tl2.rowID) from t1 tl2
where tl.col1 = tl2.col1
and tl.col2 = tl2.col2)
| Is This Answer Correct ? | 25 Yes | 31 No |
Answer / satyan
simple query
step 1
select rowid,column1,column2,column3 from table name where
condition;
step 2
delete from table name where rowid = '........'
| Is This Answer Correct ? | 4 Yes | 11 No |
Answer / ganesh
delete from emp t
where rowid != ( select min(rowid)
from empno
where empno = t.empno );
| Is This Answer Correct ? | 14 Yes | 24 No |
what is mutating table and mutating error and how to solve that?
In what situation u create the BPA.
what are version control tools used in oracle apps?
What are the Import Programs We need to run after creating Interface table for all modules
How to send the e-mail notification in XML Pub Report?
what is Flex mode and Confine mode?
is UOM maintained at master level or organization level or both?
What is Summary columns?
what are the different calculation columns available in reports?
what is meant by Drill Down in Discoverer report? why it will be use?
HOW CAN U KNOW THE STAUS OF PO?
how can i print random rows in plsql table