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
Explain a private synonyms?
What are joins, explain all types of joins?
What is a proxy object?
What is a tns file?
What is merge statement used for?
Does oracle partitioning improve performance?
How do I know if oracle is installed on windows?
How to change user password in oracle?
HI, Please let me know the syllabus for Oracle OCA and OCP Certification
Explain what are the advantages of views?
How can we delete duplicate rows in a table?
Explain the use of rows option in exp command.
what is normalisation?what are its uses?
Can we connect to ORACLE db using Windows Authentication?
How to create a table interactively?