BernardAtherton
New member
- Local time
- Today, 23:50
- Joined
- Sep 19, 2003
- Messages
- 7
Hi,
I would like help in finding a way to find the following by using a query.
I have a table that contains customer number and product. For example
Cust No Product
1 Current Account
1 Credit Card
1 Savings Account
2 Credit Card
3 Current Account
3 Credit Card
I am trying to write a query that finds customers that JUST have the products I specify.
For example ...
'What customers just have a Credit Card'. The correct response should be just customer 2.
'What customers have a Current Account AND Credit Card'. The correct response should be Customer 3 and NOT customer 1 as they have a savings account.
Any help would be gratefully appreciated. I have tried writing queries but they do not work!
Thanks
Bernard
I would like help in finding a way to find the following by using a query.
I have a table that contains customer number and product. For example
Cust No Product
1 Current Account
1 Credit Card
1 Savings Account
2 Credit Card
3 Current Account
3 Credit Card
I am trying to write a query that finds customers that JUST have the products I specify.
For example ...
'What customers just have a Credit Card'. The correct response should be just customer 2.
'What customers have a Current Account AND Credit Card'. The correct response should be Customer 3 and NOT customer 1 as they have a savings account.
Any help would be gratefully appreciated. I have tried writing queries but they do not work!
Thanks
Bernard