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 |
can any one provide me the link for the db2 v7 & db2 v8 manual for Z/os? i need to know about the syntax of REORG in both versions & need to know the difference as well
How would one remove old reorg information from the DB2 catalog?
Write a query to extract first 5 characters of a name in the column Stud_Name?
Could anyone clearly explain the diference between sub query and correlated sub query?
What if we fail to give values in columns declared as NOT NULL ?
what are extents?
In my table having 100 Rec. How can I delete the 7th row?? (we don't know what is data inside the table)
what is Static and dynamic linking
What is the significance of DB2 free space and what parameters control it?
how can u understand the end of the table ?
what is the difference between join and union?
What are the various locks available?