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)
 Duplicate Records

Author  Topic 

JeffS23
Posting Yak Master

212 Posts

Posted - 2008-01-06 : 00:20:30
I have a table with phone numbers.

I want to find if any phone number are repeated more then once. How can I accomplish this?

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-01-06 : 00:28:14
SELECT PhoneNumber
FROM TABLE
GROUP BY PhoneNumber
HAVING COUNT(*) >1
Go to Top of Page

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2008-01-06 : 03:04:22
isn't this same as http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=94978


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page
   

- Advertisement -