Basic Query question

  • Thread starter Thread starter Tom
  • Start date Start date
T

Tom

I have a supplier table and a Purchase Order table.
I want to a query that will list all the suppliers that
have purchase orders, but only once for each unique
supplier, although a supplier may have several purchase orders or none.
 
Tom said:
I have a supplier table and a Purchase Order table.
I want to a query that will list all the suppliers that
have purchase orders, but only once for each unique
supplier, although a supplier may have several purchase orders or none.

Something like:

SELECT DISTINCT Suppliers.*
FROM Suppliers INNER JOIN PurchaseOrders ON Suppliers.SupplierID =
PurchaseOrders.SupplierID;
 

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

Back
Top