I have two tables one for products and one for customers and the relation between them is many to many I want to select the product name that all the customer have bought
how to do that query ???
2006-12-22
04:43:54
·
6 answers
·
asked by
I.M.
2
in
Computers & Internet
➔ Programming & Design
the tables are
__________
Customers
__________
cusID
cusName
__________
Products
__________
ProID
ProName
cusID
two records for the customer
________________________
cusID | cusName |
________________________
1 | name1 |
2 | name2 |
________________________
records for the Products
_________________________________
ProID | ProName | cusID |
_________________________________
1 | pro1 | 1 |
2 | pro1 | 2 |
3 | pro2 | 1 |
_________________________________
I want the query that selects the product name that all the customers have bought so it will be pro1
2006-12-22
06:15:48 ·
update #1