146. 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.
本文详细解析了SQL查询中遇到子查询返回NULL值时的不同处理方式及输出结果,通过具体示例帮助理解NULL值在SQL查询中的影响。
274

被折叠的 条评论
为什么被折叠?



