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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retreiving dups using SQL

Status
Not open for further replies.

rboscia

IS-IT--Management
Dec 14, 2000
10
US
I am a newbie that needs help.
I have a table that contains customer telephone numbers (the telephone number is in 2 separate fields)and also a customer ticket #. I want to retrieve all the duplicates (and only the duplicates) of those telephone numbers by ticket #.
My output should look like this

Telephone # Ticket #
xxx-xxx-xxxx 1
8
Total # of Occurances ##

Telephone # Ticket #
xxx-xxx-xxxx 3
7
15
Total # of Occurances ##

I've tried various select queries, but not getting only the dups. Any help would be appreciated.
Thanks
Robin
 
I no longer need this information. No need to reply to this post.
Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top