Q3. How will you fetch duplicate values from a DB2 table?
Answers were Sorted based on User's Feedback
Answer / ganesh
select column1, column 2, count('X') from Table_name
group by column1, column 2
having integer(count('X')) > 1
| Is This Answer Correct ? | 16 Yes | 4 No |
How many databases are there?
What is buffer pool?
What is a synonym ?
What is consistency token in db2?
Can you search give an array in the WHERE clause of a db2 query?
What is dclgen (declaration generator)?
What is bind plan?
Lot of updates have been done on a table due to which indexes have gone haywire. What do you do?
What is an asychronous write?
How do you retrieve the first 5 characters of firstname column of db2 table emp?
What is the difference between bind and rebind in db2?
How to fetch the uncommited data from table ?