how to delete all duplicate records from a table using
subquery?
Answer Posted / lingareddy
by using below sub query delete duplicate all records:
DELETE FROM dept WHERE salary IN (
SELECT salary FROM dept GROUP BY salary HAVING ( COUNT(salary) > 1 ))
here is dept is the table name
salary is the column name
for any doubts about SQL contact with me
Thanks & Regards
Lingareddy.S
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
How oracle handles dead locks?
How to increment dates by 1 in oracle?
Is postgres faster than oracle?
How to define and use table alias names in oracle?
How many types of auditing in Oracle?
How to add another datafile to a tablespace?
What is Redo Log Buffer in Oracle?
What are the numeric comparison operations?
What is hash cluster in oracle?
What privilege is needed for a user to create tables in oracle?
Give the advantages and disadvantages of clusters.
How to calculate date and time differences in oracle?
State all possible different index configurations a table can possibly have?
How to rename an existing table?
what are the default admin accounts in Oracle 10g ?