Which of the following queries determines which customers have ordered the same books as customer 1017? a.

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;

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);

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Oracle 12c SQL

ISBN: 978-1305251038

3rd edition

Authors: Joan Casteel

Question Posted: