sougata666
Registered User.
- Local time
- Today, 05:19
- Joined
- May 1, 2016
- Messages
- 36
Suppose there are two tables - customer and product. Also available is customerproduct (linked table containing customers and the products they bought).i want to design a query which will list products NOT bought by a customer i.e. each customer will be listed with products not bought by him.
Example
Customers
Tom
Jim
Harry
Product
Shampoo
Brush
Shoe
Box
Customerproduct
Jim box
Jim brush
Tom brush
Harry shampoo
So, my query should display:
Jim shampoo
Jim shoe
Tom shampoo
Tom shoe
...
Example
Customers
Tom
Jim
Harry
Product
Shampoo
Brush
Shoe
Box
Customerproduct
Jim box
Jim brush
Tom brush
Harry shampoo
So, my query should display:
Jim shampoo
Jim shoe
Tom shampoo
Tom shoe
...