Suppose there are many duplicate records in a Db2 table.
What is the query to retrive only duplicate records?
Answer Posted / sanj
say col1 is having duplicates in table tabA.Then,
select col1 from tabA
group by col1 having (count(col1) > 1)
| Is This Answer Correct ? | 4 Yes | 4 No |
Post New Answer View All Answers
How is deadlock resolved?
Can we delete records from view?
How to create backup table in db2?
How do I delete a table in db2?
what is a corelated subquerry?
Explain dclgen.
Explain about dbrm.
What are the uses of db2 optimizer?
B37 abend during spufi?
what is diffrence b/w file-aid tool and file-aid utility???
What is the role of the data page in the db2 database?
What is the difference between cursor and select statement?
Can you use max on a char column?
What are the contents of a dclmgen?
What is nvl in db2?