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

Explain the use of the WHERE clause.

2 Answers   IBM,


What are the four lockable units for DB2?

1 Answers  


What are the functions of Bind?

2 Answers   Amdocs, IBM,


What are the three types of page locks that can be held?

1 Answers  


What is the physical storage length of the data types date, time, and timestamp?

0 Answers  


How is a typical db2 batch pgm executed?

0 Answers  


How many clustering indexes can be defined for a table?

2 Answers  


What is a clustering index?

2 Answers  


What is dbrm library?

0 Answers  


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

1 Answers  


How to create db2 table in mainframe?

0 Answers  


What is the significance of DB2 free space and what parameters control it?

1 Answers  


Categories