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
Q99: Which of the following terms refers to
Q100: If it is possible for a subquery
Q101: A subquery,except one in the FROM clause,cannot
Q102: Contents of the CUSTOMERS table
Q103: Contents of the CUSTOMERS table
Q105: With a(n)_ statement,a series of DML actions
Q106: A subquery must be enclosed in a
Q107: Valid multiple-row operators include ANY,ALL,and _.
Q108: The _ operator indicates that a value
Q109: If a subquery is contained in a
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents