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
What is a bind in db2?
How do I create a view in db2?
What is a db2 table?
What is a buffer in memory?
Where can you declare a cursor in a cobol-db2 program?
If I have a view which is a join of two or more tables, can this view be updateable?
Explain how can you do the explain of a dynamic sql statement?
What are db2 objects?
What is the physical storage length of the data types: date, time, timestamp in the db2 database?
What is the role of data manager in the db2 database?
What is the role of union all and union
How to rename a table in DB2 ?
What is view db2?
What is db2 optimizer?
What is the syntax for seeing the columns and data types of a table in the db2 database?