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 |
Explain about mirror activator disk mirroring?
Can a array declared with an index be displayed(readable format) in spool?
How to test SQL -911 error while developing COB-DB2 program
How do you stop a db2 database in linux?
Q1. How will you use two different DB2 qualifiers in a single COBOL program? Suppose we have 2 tables EMP1 and EMP2 with same structure defined in two different DB2 qualifiers QUAL1.EMP1 and QUAL2.EMP2 now during first 15 days we want to use QUAL1.EMP1 and rest of the days QUAL2.EMP2 how will we do this. We can create a single program and a single load for this program.
which authority can be granted to group of users using the GRANT stmt? A) SYSCTRL B) SYSADM C) DBCTRL D) DB ADM
what is consistency token
How does the processing of a correlated subquery differ from a non correlated subquery?
what is differnece between DROP TABLE & DELETE TABLE .
is there any restrictions for unions ?
Can we delete records from view?
Consider that a package is bound into 2 different collections and the PKLIST option specifies both the collections. If the collection id is not specified in the program while executing the SQL query, then when the DB2 system will search the package list, which collection will it pick up or will it give an error/abend?