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!

Unique rows that share identification # 1

Status
Not open for further replies.
Nov 7, 2002
61
US
Hi,

I've need to parse out data to identify duplicate entries in a database that share a License#, but have slightly different names. I want the results to display on a single line for each ID#.

My data looks like this:

Code:
Name            Primary Key      ID
Smith,John          1            12345
Smith,Jon           2            12345
Smith,Johnny        3            12345

I need the results to look like this:

Code:
Smith,John  1    Smith,Jon    2    Smith,Johnny    3

I'm usually pretty good with queries, but am lost on how to do this without getting a slew of matches, since each row is unique.

Any help would be greatly appreciated.

Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top