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

Qry to return list of clients who have not placed an order

Status
Not open for further replies.

monkeysee

Programmer
Sep 24, 2002
201
US
Using the Northwind database as an example, how would one build a query to give a list of clients who have not placed an order in the current year?
 
Try SQL like
Code:
SELECT Customers.*
FROM Customers
WHERE (((Customers.CustomerID) Not In (SELECT CustomerID FROM ORDERS WHERE OrderDate >=DateAdd("yyyy",-1,Date()))));

Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top