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 node in db2?
Define sqlca.
What is cursor in dbms?
Explain in brief how does db2 determine what lock-size to use?
Explain the contents that are a part of dclgen.
Can you tell me how can you find out the # of rows updated after an update statement?
What is page size in db2?
What is a storage group (stogroup)?
What is host variable?
What is the picture clause of null indicator variable?
What is the physical storage length of the data types date, time, and timestamp?
How can the duplicate values be eliminated from db2 select?
How do I add a column to an existing table in db2?
What is declare cursor?
How and when does the db2 enforces the unique key?