What is the SQL query to select, delete and get count of
duplicate rows in DB2?
Answer Posted / hkhatri27
SELECT Columns
FROM Table
GROUP BY Columns
HAVING COUNT(*) > 1;
~ Himanshu
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
What is bind in db2?
What is a Foreign Key?
Can we insert update delete in view?
What is difference between rollback and commit?
What are the benefits of using the db2 database?
What do you mean by between and in? Is between inclusive of specified range values?
How do I copy a table in db2?
Explain correlated sub-queries.
What are host variables in db2?
What do you mean by rollback?
How can you validate Sql errors during cursor operation in db2 pgms and where do you code?
What is the use of reorg in db2?
Comment whether dclgen is mandatorily used. If not, then what is the point of using it?
What is isolation level in db2?
What is dbrm? What it contains? When it will be created?