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 |
What is the use of db2 optimizer?
What is the difference between spufi and qmf?
what is datacom db?
What is the difference between CS and RR isolation levels?
what is cursor stability?
What is the difference between IN subselects and EXISTS subselect?
What is a dbrm in db2?
Name some fields from SQLCA
In which column of which DB2 catalog would you find the length of the rows for all tables?
File not opened because library is *PROD and debug is UPDPROD(*NO). ? what may be the reason? how to solve it..?
Can we use select query in a loop to fetch multiple rows in a COBOL PROGRAM? If so, what is the advantage of cursor?
What is the use of dclgen in db2?