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 self-referencing constraint?

2 Answers  


How to know the primary key of a table without defining the primary key in the table?

5 Answers   Satyam,


What are iseries servers?

0 Answers  


What is an instance database?

0 Answers  


What happens to a tablespace when its recovery infromation has been removed and a full recovery is no longer possible?

2 Answers  






What can the SET option of the Repair Utility accomplish?

1 Answers  


What is ALTER ?

3 Answers  


Explain packages.

0 Answers  


Can you access the DB2 Directory table using SQL?

3 Answers  


what is differnece between DROP TABLE & DELETE TABLE .

4 Answers   Cap Gemini,


What is the function of buffer manager?

1 Answers  


what is check point and restart Logic ? why do we go for that ??

2 Answers   CGI, UST, Xansa,


Categories