How will you delete duplicate records from a table?

Answer Posted / s

DELETE FROM TABLE ABC
WHERE COLUMN =
(SELECT COLUMN FROM TABLE ABC
GROUP BY COLUMN
HAVING COUNT(*) > 1);

Is This Answer Correct ?    20 Yes 36 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

i want to maintain uniqueness on pdf without make lf??????????

1637


Which are the db2 tools to protect integrity of the database?

692


Before you give the explain statement, what are the prerogatives?

581


What is the difference between spufi and qmf?

639


List some fields from sqlca?

613






What is copy pending and check pending in db2?

578


Hi Everyone... Under the Logical files, when am working on multiple rec format logical file, I have joined two pf's using the multiple record format logical file concept, but when i run queried the LF only the first mentioned pf records are reflecting and I am not able to see any of the field records specified under the second pf. Kindly let me know whats the reason behind this. Below is the str of LF., R rec PFILE(LOGICAA) CUSTNO CUSTNAME BILL K CUSTNO R rec1 PFILE(LOGICAA1) CUSTNO ADD K CUSTNO .....

1898


How do you stop a db2 database in linux?

570


Give the name of some fields form sqlca.

614


How is deadlock resolved?

650


Can there be more than one cursor open for any program?

662


When reorg is used?

678


What are the bind parameters ibm db2?

624


How to take backup of table in db2?

601


What does db2 blu stand for?

662