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


how will i display the duplicate record's from a table...
i don't want to eliminate ...i want to display the duplicate
record...for example in my table i have 10 record's like
record no(1,2,3,4,2,9,6,1) in this ...so i want to receive
duplicates...



how will i display the duplicate record's from a table... i don't want to eliminate ...i ..

Answer / raja_kb

SELECT <Column Name1> FROM Table
GROUP BY <Column Name1> HAVING COUNT(*)>1;

Is This Answer Correct ?    7 Yes 1 No

Post New Answer

More DB2 Interview Questions

What is the difference between IN subselects and EXISTS subselect?

1 Answers   HCL, PreVator, TCS,


What is buffer pool in the db2 database?

0 Answers  


What is an intent lock?

3 Answers  


What is dpf in db2?

0 Answers  


What is COPY PENDING status?

6 Answers  


What type of database is db2?

0 Answers  


by using cursors , we can access particular records from the table based on some condition, i want to delete those selected records, how can we write a query for this in the program?

4 Answers   Mphasis,


How will you return the number of records in table?

0 Answers  


What is node in db2?

0 Answers  


What is a Foreign Key?

0 Answers   Tavant Technologies, Zensar,


I need to view the number of tables existing under one particular Owner. Is it possible? If so, pl give the SQL query for this?

0 Answers  


What is load replace in db2?

0 Answers  


Categories