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 All Users Have The Privilege To Use The SQL Statement Select (DML)?
What does db2 blu stand for?
Mention the way of highlighting as well as putting a cursor to use in a cobol program.
What is a Database Request Module(DBRM)?
how to resolve -818 error. how to see timestamp token in load module and plan
What is a DB2 access path?
Do we need cursor for Count(*)?
Which component is used to execute the sql statements?
I have a main program (A) where we delete some rows in table in a cursor, and we commit it in sub program(B). What will happen - will we get an error or not?
What is a clustering index?
What is the difference between TYPE 1 index & TYPE 2 index
How to rename a table in DB2 ?