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 |
Explain the use of the WHERE clause.
What are the four lockable units for DB2?
What are the functions of Bind?
What are the three types of page locks that can be held?
What is the physical storage length of the data types date, time, and timestamp?
How is a typical db2 batch pgm executed?
How many clustering indexes can be defined for a table?
What is a clustering index?
What is dbrm library?
How do you retrieve the first 5 characters of firstname column of db2 table emp?
How to create db2 table in mainframe?
What is the significance of DB2 free space and what parameters control it?