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
various types of hints and their usage
How to experiment a data lock in oracle?
Does oracle database need java?
How does propagation differ between Advanced Replication and Snapshot Replication (read-only)?
Give the advantages and disadvantages of clusters.
What is Undo Management Advisor in Oracle?
Her departmandaki isçilerden empno' su ikinci sirada olan isçilerin empno, deptno, hiredate, sira_no bigilerini döndüren sorguyu yaziniz?
Can we write dml statement in function in oracle?
What is different types of joins?
How to do clean up if create database failed?
How to create additional tablespaces for an new database?
can anyody please send me the dump for Oracle 10g certifications for DBA path?
What is the difference between 10g OEM and 11g OEM?
Which is better Oracle or MS SQL? Why?
How many categories of data types in oracle?