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?

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


Please Help Members By Posting Answers For Below Questions

Cursors can be declared in both working-storage & procedure division, agreed. But is there any difference? If could you please suggest what is the difference

1402


What is the information associated with sysibm.syslinks table?

1107


What is null value in db2?

1004


Which is faster delete or truncate?

1110


How would you find out the total number of rows in a db2 table?

1041


What are host variables in db2?

1028


Is it possible to alter a table – for example adding a column, when another user is accessing or updating some columns?

1065


How is deadlock resolved?

1125


I have a subprogram B calling from mainprogram A.I have opened a cursor in A ,Can i fetch the same cursor in subprogram B , If yes , Please explain the reason?

2371


What is a dbrm in db2?

1009


What is the clustering index in the db2 database?

986


Explain packages.

1095


What is db2 bind process?

1223


How to rename a table in DB2 ?

1075


How to find schema of a table in db2?

1000