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

Mention a credible reason why select* is never given preference in an sql program that has been embedded.

0 Answers  


Can you tell me how can you find out the # of rows updated after an update statement?

0 Answers  


Can SQL statements/queries be included in a copybook?

2 Answers  


what is a plan and how do you refer the plan in the program?

2 Answers   Xansa,


Are views updatable ?

4 Answers  


In terms of DB2 indexing, what is the root page?

1 Answers  


What is dbrm library?

0 Answers  


What is the information associated with sysibm.syslinks table?

0 Answers  


What is host variable in db2 cobol?

0 Answers  


WHAT IS MEANT BY COMMIT COMMAND?

7 Answers   Wipro,


select distinct(empid),distinct(dept),name from EMP will the above query work?

2 Answers   CTS,


Name the various locking levels available?

0 Answers  


Categories