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

select column_1 from tablename groupby column1 having coun(*)>1

Is This Answer Correct ?    11 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How is the value function used?

1207


How do I add a column to an existing table in db2?

1082


How to compare data between two tables in db2?

1138


What is load replace in db2?

1048


How to connect to db2 database from windows command line?

1136


what is db2 restart?

2213


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

1087


What is the advantage in De-normalizing tables in DB2?

1232


Which component is used to execute the sql statements?

1145


What is the difference between db2 and oracle?

1178


Which component is responsible for processing sql statements and selecting access paths?

1178


What is buffer pool and list some of them?

1093


What is a db2 package?

1125


What is database alias db2?

1177


If the cursor is kept open followed the issuing of commit, what is the procedure to leave the cursor that way?

1222