Question: Which of the following queries determines which customers have ordered the same books as customer 1017? a. SELECT order# FROM orders WHERE customer# = 1017;
Which of the following queries determines which customers have ordered the same books as customer 1017?
a. SELECT order# FROM orders
WHERE customer# = 1017;
b. SELECT customer# FROM orders
JOIN orderitems USING (order#)
WHERE isbn = (SELECT isbn FROM orderitems
WHERE customer# = 1017);
c. SELECT customer# FROM orders
WHERE order# = (SELECT order# FROM orderitems
WHERE customer# = 1017);
d. SELECT customer# FROM orders
JOIN orderitems USING (order#)
WHERE isbn IN (SELECT isbn FROM orderitems
JOIN orders USING (order#)
WHERE customer# = 1017);
Step by Step Solution
3.35 Rating (173 Votes )
There are 3 Steps involved in it
d SELECT customer FROM orders ... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (2 attachments)
1803_60b8c1212a4ec_716706.pdf
180 KBs PDF File
1803_60b8c1212a4ec_716706.docx
120 KBs Word File
