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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is lock escalation in db2?

771


What is universal database?

823


What is temporal table in db2?

789


Can you use max on a char column?

824


What is node in db2?

809


Which is faster delete or truncate?

868


What is db2 look?

777


What does db2 plan contain?

752


Explain about dbrm.

776


What are host variables in db2?

798


Explain the contention situations caused by locks?

788


What is copy pending and check pending in db2?

746


What is the use of dclgen in db2?

794


What is dclgen in db2?

879


What is a cursor in programming?

807