Given the following table, what would be the SQL for finding the order numbers which have BOTH items 101 and 102?
The orders table is structured Orders(orderno, itemno, quantity) with the following rows:
(O1, 101, 3)
(O2, 102, 5)
(O2, 101, 7)
(O2, 103, 5)
(O3, 101, 1)
(O4, 101, 2)
(O4, 102, 3)
Tags: