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
Is db2 a database?
How do I optimize a query in db2?
How to find the number of rows in a db2 table?
How do I import data from excel to db2?
Are views updateable?
How do I connect my db2 database to ibm?
i want to maintain uniqueness on pdf without make lf??????????
How to test SQL -911 error while developing COB-DB2 program
What do you mean by cursor?
If I have a view which is a join of two or more tables, can this view be updateable?
What is check constraint in db2?
What is explain plan in db2?
What is db2 purescale?
Differentiate between cs and rr isolation levels? Where do you specify them?
Can you tell me how can you find out the # of rows updated after an update statement?