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 cascading triggers.
How to write text literals in oracle?
What is Data Dictionary Cache in Oracle?
What are the attributes that are found in a cursor?
What is the purpose of tables, private synonyms and public synonyms in Oracle?
I am using an Oracle 8i Database my data contains Clob data. I am using toad version 7.6 i am able to get the data in toad but unable to extract the data in excel.when trying to extract the data into the excel the toad error says out of memory. Can any body please help me to extract the data through the same toad version. Thanks in advance
How to specify default values in insert statement using oracle?
What is bind variable in oracle 11g?
Difference between the “verify” and “feedback” command?
What is the difference difference between $ORACLE_HOME and $ORACLE_BASE.
How would you configure your networking files to connect to a database by the name of DSS which resides in domain icallinc.com?
what are archived logs?
From the following identify the non schema object: packages, triggers, public synonyms, tables and indexes.
How to loop through a cursor variable?
How to drop an existing view in oracle?