Question: Given the following table ( called Orders ) , what would be the SQL for finding the order numbers of the orders that include BOTH
Given the following table called Orders what would be the SQL for finding the order numbers of the orders that include BOTH items and
The orders table is structured Ordersorderno itemno, quantity with the following rows:
select distinct orderno from Orders where itemno or iteno
select distinct orderno from Orders where itemno and itemno
select distinct orderno from Orders where itemno in
select orderno from Orders where itemno
intersect select orderno from Orders where itemno
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
