T
The Joker via AccessMonster.com
Hello!
I'm working on a query that I think may have to be done in SQL but would
rather do in Access if possible.
I have a table similar to the one below
tblCustomerPurchases:
CustomerID | ProductType |
1 DVD
1 CD
1 Book
1 DVD
2 CD
2 CD
3 Book
3 DVD
4 CD
5 Game
5 CD
I want a query where I can see what customers have bought CDs AND NOT bought
any books or DVDs. So in effect we could solicit our other products to
customers who haven't bought any other items. I think what I'll need to do
is group by CustomerID and do a where statement for CDs and NOT books or DVDs.
I hope this makes sense. Any help will be greatly appreciated!
Thank you very much!!
I'm working on a query that I think may have to be done in SQL but would
rather do in Access if possible.
I have a table similar to the one below
tblCustomerPurchases:
CustomerID | ProductType |
1 DVD
1 CD
1 Book
1 DVD
2 CD
2 CD
3 Book
3 DVD
4 CD
5 Game
5 CD
I want a query where I can see what customers have bought CDs AND NOT bought
any books or DVDs. So in effect we could solicit our other products to
customers who haven't bought any other items. I think what I'll need to do
is group by CustomerID and do a where statement for CDs and NOT books or DVDs.
I hope this makes sense. Any help will be greatly appreciated!
Thank you very much!!