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 is the syntax for FETCH in DB2 ?
before altering a table is it necessary to lock ? if lock what is it ? how to do ? ifi want to lock a table what is that command ?
Explain what are the various isolation levels possible?
What is the physical storage length of date data type?
Can we update view in db2?
Is it possible to create an Instance in DB2 using DB2 Control Center ?
What is a db2 collection?
What is package in cobol db2?
How to connect to db2 database from windows command line?
Is db2 a programming language?
ther r 2 tables OTTABLE & SALTABLE, add the otamt from OTTABLE to empsal of SALTABLE if eid is matched else add the unmatched from OTTABLE to SALTABLE
What is the maximum length of sqlca?
How to retrieve rows from a db2 table in embedded sql?
How does cobol compile db2 program?
What is the purpose of using commit?