PC Review


Reply
Thread Tools Rate Thread

Basic Query question

 
 
Tom
Guest
Posts: n/a
 
      11th Dec 2006
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.


 
Reply With Quote
 
 
 
 
Arvin Meyer [MVP]
Guest
Posts: n/a
 
      11th Dec 2006
"Tom" <(E-Mail Removed)> wrote in message
news:bdidnZ2QHaX5U-(E-Mail Removed)...
>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;
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Basic Question in Web Query...HELP!! Rick Microsoft Excel Misc 0 19th Nov 2009 04:28 AM
Basic SQL query question Xmas Microsoft Access 4 8th Nov 2009 05:27 PM
Basic SQL query question Xmas Microsoft Access ADP SQL Server 4 8th Nov 2009 05:27 PM
Update Query basic question =?Utf-8?B?RGFu?= Microsoft Access Queries 2 22nd Jun 2007 02:22 PM
Basic query Question =?Utf-8?B?S2l3aSBsb3N0IGluIEFzaWE=?= Microsoft Access Queries 1 28th Aug 2004 05:04 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:21 AM.