how to delete all duplicate records from a table using
subquery?
Answer Posted / aseem k
Tried and tested:
Table d:
7
8
7
DELETE FROM D WHERE ROWID IN (
SELECT DISTINCT MIN(ROWID) FROM D
WHERE DEPTNO IN
(SELECT DEPTNO FROM D GROUP BY DEPTNO
HAVING COUNT(DEPTNO)>1))
| Is This Answer Correct ? | 1 Yes | 5 No |
Post New Answer View All Answers
How do I connect to oracle?
what is the scripts in data base?
What are triggers in oracle?
How does the on-delete-cascade statement work?
How to create a stored program unit?
You have 4 instances running on the same UNIX box. How can you determine which shared memory and semaphores are associated with which instance?
In which language oracle has been developed?
Explain the use of record length option in exp command.
What is raw datatype?
Can we insert data in view oracle?
How to use "for" statements in oracle?
Can we convert a date to char in oracle and if so, what would be the syntax?
Explain the use of indexes option in exp command.
How to select some rows from a table in oracle?
A table t is there.If you perform insert ,update and delete then the trigger will fire.What is the minimum no of trigger required for a table.