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

1 Expert Approved Answer
Step: 1 Unlock

d SELECT customer FROM orders ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Document Format (2 attachments)

PDF file Icon

1803_60b8c1212a4ec_716706.pdf

180 KBs PDF File

Word file Icon

1803_60b8c1212a4ec_716706.docx

120 KBs Word File

Students Have Also Explored These Related Oracle 12c SQL Questions!