I am working on a small project using an oracle database and I have the following tables:
CUSTOMER ( Cid, CName, City, Discount ) PRODUCT ( Pid, PName, City, Quantity, Price ) ORDERS ( OrderNo, Month, Cid, Aid, Pid, OrderedQuantity, Cost )
How to get the names of all customers who ordered all products?
For example, if customer x ordered product1, product2, and product3 (which are all products offered by the company), he will be selected. And if customer y ordered only product 1 and 2, but not 3, he will not be selected.
How can i achieve this?
source share