How to query for unique values

D

Dan

I have a table with a field for Vendor. There are 60K line items in the
file. But only 30 vendors. So each vendor is repeated many times.

I want to build a query that will list each vendor only once. How would I do
that? Is there a built in function that I place in the criteria to only
return one value for each?

Dan
 
R

Randy Harris

Dan said:
I have a table with a field for Vendor. There are 60K line items in the
file. But only 30 vendors. So each vendor is repeated many times.

I want to build a query that will list each vendor only once. How would I do
that? Is there a built in function that I place in the criteria to only
return one value for each?

Dan

SELECT DISTINCT Vendor FROM Table;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top