Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Q3. How will you fetch duplicate values from a DB2 table?

Answers were Sorted based on User's Feedback



Q3. How will you fetch duplicate values from a DB2 table?..

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

Q3. How will you fetch duplicate values from a DB2 table?..

Answer / 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

More DB2 Interview Questions

How many databases are there?

0 Answers  


What is buffer pool?

0 Answers  


What is a synonym ?

2 Answers  


What is consistency token in db2?

0 Answers  


Can you search give an array in the WHERE clause of a db2 query?

1 Answers  


What is dclgen (declaration generator)?

0 Answers  


What is bind plan?

0 Answers  


Lot of updates have been done on a table due to which indexes have gone haywire. What do you do?

2 Answers  


What is an asychronous write?

1 Answers  


How do you retrieve the first 5 characters of firstname column of db2 table emp?

1 Answers  


What is the difference between bind and rebind in db2?

0 Answers  


How to fetch the uncommited data from table ?

1 Answers   JPMorgan Chase,


Categories