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

Using Distinct

Status
Not open for further replies.
Apr 27, 1999
705
US
Hello,

In Table A, I have a column called OwnerID that is unique. In Table B, I have multiple records of different OwnerIDs and purchases.

I'd like to list the distinct OwnerID from Table B and match them with Table A.

THanks ahead,

fengshui1998
 
I don't understand your question. Are you trying to find all OwnerId's that have at least one row in TableB?

-George
Microsoft SQL Server MVP
My Blogs
SQLCop
twitter
"The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top