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 syscat in db2?
What is deadlock in db2?
Explain package in db2 and its advantages?
What is the connection string to connect to the DB2 Database ?
What is the physical storage length of date data type?
What are the benefits of using the db2 database?
Is the primary key a clustered index?
What is check constraint in db2?
What do you mean by cursor?
Which command is used to connect to a database in DB2 ? Give the Syntax.
what is the sqlcode -501
Differentiate between cs and rr isolation levels? Where do you specify them?
What parameters are used to control the free space in DB2?
What is rct?
What is runstats db2?