Question: Given the following SQL statement, which statement is most accurate? SELECT customer# FROM customers JOIN orders USING (customer#) WHERE shipdate-orderdate IN (SELECT MAX (shipdate-orderdate) FROM

Given the following SQL statement, which statement is most accurate?
SELECT customer# FROM customers
JOIN orders USING (customer#)
WHERE shipdate-orderdate IN
(SELECT MAX (shipdate-orderdate) FROM orders
WHERE shipdate IS NULL);
a. The SELECT statement fails and returns an Oracle error message.
b. The outer query displays no rows in its results because the subquery passes a NULL value to the outer query.
c. The customer number is displayed for customers whose orders haven’t yet shipped.
d. The customer numbers of all customers who haven’t placed an order are displayed.

Step by Step Solution

3.49 Rating (172 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

b The outer query disp... 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_60b8c1212aa0c_716721.pdf

180 KBs PDF File

Word file Icon

1803_60b8c1212aa0c_716721.docx

120 KBs Word File

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