Suppose there are many duplicate records in a Db2 table.
What is the query to retrive only duplicate records?
Answer Posted / azharuddinsyed
SELECT <COLUMN_1> FROM TABLENAME
GROUP BY COLUMN_1
HAVING COUNT(COLUMN_1) > 1
OR
SELECT <COLUMN_1> FROM TABLENAME
GROUP BY COLUMN_1
HAVING COUNT(*) > 1
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Mention the various locks that are available in db2.
What is the latest version of ibm db2?
What is ibm db2 connect?
What is db2 bind process?
What is db2 optimizer?
What is an instance database?
Which isolation level provides maximum concurrency?
How do I connect my db2 database to ibm?
What is the maximum size of varchar data type in db2?
What is load utility in db2?
What is temporal table in db2?
Where do you specify them?
What is role in db2?
How to resolve deadlock issue
Which component is responsible for db2 startup and shutdown?