1: 2: 3: 4: 5: 6: 7: 8: 9:
SELECT * FROM customers c, ( SELECT DISTINCT customerid FROM orders WHERE productid IN (31, 59, 60) OR (productid = 61 AND Quantity = 2) GROUP BY orderNumber HAVING COUNT ( * ) = 4) x WHERE c.customerid = x.customerid