Q3. How will you fetch duplicate values from a DB2 table?
Answer Posted / ramana99
select City, Country, count('X') from Customers
group by City, Country
HAVING count('X') > 1
;
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
How can tablespace be moved to another dasd volume that is allocated for that tablespace?
What does sqlcabc has?
What is isolation level in db2?
in my project..TEST is db2 8.1 version In PROD it is 7.1 if i do REORG in TEST.. can I use the same REORG jcl with out modification in PROD region (this is DB2 8.1 )? if not, what modification i need to do in my REORG control card?
What is consistency token in db2?
What is universal database?
What is lock escalation in db2?
How do I delete a column in db2?
What is the role of union all and union
How does coalesce work?
what is a corelated subquerry?
For a db2 column that is being defined as decimal (11, 2), discuss the cobol picture clause.
What are types of indexes?
What is a db2 cursor?
Explain in detail about buffer manager and its functionalities?