Which statement is true regarding the above query if one of the values generated by the subquery is NULL?

Evaluate the following SQL statement:
SQL> SELECT cust_id, cust_last_name
FROM customers
WHERE cust_credit_limit IN
(select cust_credit_limit
FROM customers
WHERE cust_city =’Singapore’);
Which statement is true regarding the above query if one of the values generated by the subquery is NULL?
A. It produces an error.
B. It executes but returns no rows.
C. It generates output for NULL as well as the other values produced by the subquery.
D. It ignores the NULL value and generates output for the other values produced by the subquery.

Download Printable PDF. VALID exam to help you PASS.

3 thoughts on “Which statement is true regarding the above query if one of the values generated by the subquery is NULL?

  1. Sorry just to clarify the NOT IN Statement that will give no results if you encounter any NULL from it.

  2. D. It ignores the NULL value and generates output for the other values produced by the subquery.
    Is a correct Value because using IN statement will ignore all null results except with the NOT IN in which a null statement can give an error.

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.