Q3. How will you fetch duplicate values from a DB2 table?
Answer Posted / 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 |
Post New Answer View All Answers
What does sqlcabc has?
What are the various data types available in db2?
What is the role of data manager in the db2 database?
What kind of database is db2?
What is lock escalation in db2?
What is db2 stogroup?
What is meant by union and union all?
Is schema the same as database?
In case if at some point of time db2 is down, would that impact the pre-compilation process of a db2-cobol program?
Are views updateable?
Hi Everyone... Under the Logical files, when am working on multiple rec format logical file, I have joined two pf's using the multiple record format logical file concept, but when i run queried the LF only the first mentioned pf records are reflecting and I am not able to see any of the field records specified under the second pf. Kindly let me know whats the reason behind this. Below is the str of LF., R rec PFILE(LOGICAA) CUSTNO CUSTNAME BILL K CUSTNO R rec1 PFILE(LOGICAA1) CUSTNO ADD K CUSTNO .....
Why do we bind in db2?
Can one database have multiple instances?
Name the lockable units in DB2?
How to retrieve rows from a db2 table in embedded sql?