Multiple Choice
Contents of the CUSTOMERS table
-Based on the contents of the CUSTOMERS table,which of the following SQL statements will display the customer# of all customers who were referred by the same individual that referred customer# 1003?
A) SELECT customer# FROM customers WHERE referred =
(SELECT referred FROM customers WHERE customer# = 1003) ;
B) SELECT customer# FROM customers WHERE referred EXISTS
(SELECT referred FROM customers WHERE customer# = 1003) ;
C) SELECT customer# FROM customers WHERE NVL(referred,0) =
(SELECT NVL(referred,0) FROM customers WHERE customer# = 1003) ;
D) SELECT customer# FROM customers WHERE NVL(referred,0) =
(SELECT referred FROM customers WHERE customer# = 1003) ;
Correct Answer:

Verified
Correct Answer:
Verified
Q22: If a subquery is nested in a
Q23: If the result returned from a subquery
Q24: Any type of subquery can be used
Q25: When a multiple-column subquery is included in
Q26: Which of the following can be used
Q28: A subquery nested in a WHERE clause
Q29: A(n)_ query can return several rows of
Q30: When a multiple-column subquery is included in
Q31: In Oracle12c,there is no depth limit on
Q32: The<u> IN </u>operator is valid for multiple-row