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 |
Mention the various locks that are available in db2.
how can you access index
Can we use select query in a loop to fetch multiple rows in a COBOL PROGRAM? If so, what is the advantage of cursor?
what's the error code for Unique Index Violation?
How do I import a csv file into db2?
What is concurrency in db2?
Following a db2 update statement, what is the quickest way to compute the total number of updated rows?
what is Runstats? Whem will u choose to runatats?
How many Buffer pools are there in DB2 and what are they?
What is the difference between Where and Having Clause
how can we find nth max salary from A table
is there any restrictions for unions ?