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
i want to maintain uniqueness on pdf without make lf??????????
Which are the db2 tools to protect integrity of the database?
Before you give the explain statement, what are the prerogatives?
What is the difference between spufi and qmf?
List some fields from sqlca?
What is copy pending and check pending in db2?
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 .....
How do you stop a db2 database in linux?
Give the name of some fields form sqlca.
How is deadlock resolved?
Can there be more than one cursor open for any program?
When reorg is used?
What are the bind parameters ibm db2?
How to take backup of table in db2?
What does db2 blu stand for?