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

Explain the contents that are a part of dclgen.

1092


What is clone table?

1042


Why cursor is used in db2?

1036


What is the default page size of buffer pools?

1122


What are db2 tables?

1125


What is commit in db2?

1055


What is universal database?

1069


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

1109


Why select is not preferred in embedded sql programs?

1299


B37 abend during spufi?

1455


What are the full forms of spufi and dclgen and why are they used?

1087


How many databases can be created inside an instance in db2 ?

1035


What do you mean by rollback?

991


Is the primary key a clustered index?

1149


What is phantom read in db2?

1160