Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 How to get duplicate records in one table

Author  Topic 

raviborra
Starting Member

14 Posts

Posted - 2008-10-24 : 06:39:07
How to get duplicate records in one table

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-10-24 : 06:53:39
can you elaborate? what according to you represent duplicate records?
Go to Top of Page

Transact Charlie
Master Smack Fu Yak Hacker

3451 Posts

Posted - 2008-10-24 : 07:00:13
Yeah, what Visakh said. That's not very much info.

saying that: I think you want GROUP BY

something like

SELECT
<your column>
FROM
<your table>
GROUP BY
<your column>
HAVING
COUNT(<your column>) > 1



-------------
Charlie
Go to Top of Page
   

- Advertisement -