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
normally database take to refresh time 2 hours. but client asked iwant to refresh with in 5 min that same database. do you have any option in BO and Oracle? explain me briefly...kavi
What is SQL access advisor in Oracle?
How do I reset a sequence in oracle?
Why we use bulk collect in oracle?
How to assign a tablespace to a users in oracle?
what are the advantages of running a database in archive log mode?
What is oracle database 10g express edition?
What are the execution control statements?
How can Oracle users be audited?
Explain index?
how to make an oracle object
Explain how are indexes update?
How many types of table in Oracle?
Explain about the analyze command in oracle?
Compare and contrast between sql and sql server and explain its various functions?