Hi!
OK, somehow I got a blackout trying to formulate an answer for this question...I have 2 tables (actually many more, but for this they are irrelevant), say
- customer
- order
the tables are joined by customerID. Within the order-table I use itemID to refer to the item bought.
How would I select all the customers that have bought 2 certain items, ie. have an order with itemID=100 and also have an order with itemID=200?
Hope this is clear enough?!
OK, somehow I got a blackout trying to formulate an answer for this question...I have 2 tables (actually many more, but for this they are irrelevant), say
- customer
- order
the tables are joined by customerID. Within the order-table I use itemID to refer to the item bought.
How would I select all the customers that have bought 2 certain items, ie. have an order with itemID=100 and also have an order with itemID=200?
Hope this is clear enough?!