Hello,
I have two tables as below:
Customer
CID non-unique
Name
Shape
Purchases
PID
Item
CID Foreign Key
I would like to know how i can produce a query that can show all customers who do not have a specific Item related to it. How can I achieve this in Access?
For Example say I had the below data:
Customer
1 John Triangle
2 Peter Square
3 Kim Circle
Purchases
1 Mouse 1
2 Choc 1
3 Pin 2
4 Tub 1
5 Glass 3
6 Glass1
I want the query to show the following people who havent purchased "Glass":
Query(CID, Name, Item)
2 Peter
...as this person did not but Glass according to the Purchase Table.
With Thanks
Gorgon
I have two tables as below:
Customer
CID non-unique
Name
Shape
Purchases
PID
Item
CID Foreign Key
I would like to know how i can produce a query that can show all customers who do not have a specific Item related to it. How can I achieve this in Access?
For Example say I had the below data:
Customer
1 John Triangle
2 Peter Square
3 Kim Circle
Purchases
1 Mouse 1
2 Choc 1
3 Pin 2
4 Tub 1
5 Glass 3
6 Glass1
I want the query to show the following people who havent purchased "Glass":
Query(CID, Name, Item)
2 Peter
...as this person did not but Glass according to the Purchase Table.
With Thanks
Gorgon
Last edited: