Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with query 1

Status
Not open for further replies.

extremedatos

Technical User
Feb 22, 2010
54
AR
Hi all,

I need help with a query im not an sql guy. this is what i need.

select * from tblparticipant09
Here i have a column call "nvcPhoneNumber" I need to how many duplicated "phonenumbers" i have?

Thanks.
 
r937,

i only got one column how do i know how many times each phonenumber was repeated?

thanks
 
Code:
SELECT nvcPhoneNumber
     , [blue]COUNT(*) AS how_many_times[/blue]
  FROM tblparticipant09
GROUP
    BY nvcPhoneNumber
HAVING COUNT(*) > 1
:)

r937.com | rudy.ca
Buy my new book Simply SQL from Amazon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top