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
Where do you specify them?
What is access path in db2?
What is isolation level in db2?
What is iseries database?
Can you tell me how can you find out the # of rows updated after an update statement?
What is an instance in db2?
What are the benefits of using the db2 database?
What is an instance database?
What is the maximum No of rows per page?
How to access db2 tables in mainframe?
What is db2 purescale?
What is null in db2?
define clustering index.
Which command is used to remove all rows from a table?
How does db2 sample database connect?