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 to specify default values in insert statement using oracle?
State and explain about oracle instance?
What is the data pump export utility?
How to load data from external tables to regular tables?
What is an oracle transaction?
How to bring a tablespace online?
How to get a list of all background sessions in the database?
How do I connect to oracle?
Can you have more than one content canvas view attached with a window ?
What are the most common interview questions on ETL Testing for experience?
Why does oracle 9i treat an empty string as null?
what is the difference between functional dependecy and multilevel dependency?
How to best split csv strings in oracle 9i?
What are the differences between date and timestamp in oracle?
How to delete a user account in oracle?