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

How to see the structure of db2 table??

4 Answers   IBM,


How can you compare table column after update and before update?

5 Answers   Satyam,


How do I delete a table in db2?

0 Answers  


wht is d/f between union and joins ?

2 Answers  


What's the difference between DB2 active log and archive log? Thanks a lot...

2 Answers   IBM,


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,


Is ibm db2 free?

0 Answers  


Once you create a view, where would information about the view be stored?

1 Answers  


Which catalog tables contain authorization information?

1 Answers  


How does DB2 store NULL physically?

2 Answers  


What does runstats do in db2?

0 Answers  


What is image copy in db2?

0 Answers  


Categories