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 / chidambara subbu

SELECT City FROM Customers
Group by City
HAVING COUNT(City) > 1

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to view db2 table structure?

1065


Define buffer pool.

1100


What is nvl in db2?

1147


Define db2 and its databases?

1112


How to find the maximum value in a column in the db2 database?

1126


How can you count the number of rows from a table tab?

1134


What is image copy in db2?

1071


How can you quickly find out the # of rows updated after an update statement?

1084


What is catalog database in db2?

1216


What is an instance database?

1096


Why do we bind in db2?

1273


How to create db2 table in mainframe?

1217


Can you use max on a char column?

1141


Mention the various locks that are available in db2.

1085


What is a dbrm in db2?

1077