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...

Suppose there are many duplicate records in a Db2 table.
What is the query to retrive only duplicate records?

Answer Posted / sanj

say col1 is having duplicates in table tabA.Then,

select col1 from tabA
group by col1 having (count(col1) > 1)

Is This Answer Correct ?    4 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do we specify index to include or not during bind process.

2174


Mention data types used in db2 ?

1200


Can you tell me how can you find out the # of rows updated after an update statement?

1144


What is iseries database?

1116


What is sqlca?

1131


What is reorg and runstats in db2?

1261


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?

2157


What is dbrm in db2 database?

1194


What is the role of data manager in the db2 database?

1155


What does reorg do in db2?

1074


How to get the ddl of a table in db2?

1168


How to access db2 tables in mainframe?

1102


What is the syntax for seeing the columns and data types of a table in the db2 database?

1236


Explain package in db2 and its advantages?

1272


Define buffer pool.

1100