【071题库】最新OCP-071考试题库解析-第51题
071考试是OCP考试科目的一种,由于071考题多变,我们专门收集整理了最新的考试题库,并对这些考题进行讲解,希望可以帮助广大考生。
每周五晚8点,我们有免费的OCP解析公开课,地址:https://ke.qq.com/course/326223 OCP题库交流群:1015267481,验证ocp
-------------------------------------------------------
071题库-第51题、choose the best answer:
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 ignores the NULL value and generates output for the other values produced by the subquery.
B) It produces an error.
C) It generates output for NULL as well as the other values produced by the subquery.
D) It executes but returns no rows.
Answer:A
(解析,子查询中如果有出现某行值为 null,则忽略该行,其它的正常处理,原来 051 的考题。
类似的语句:
select ename from emp where empno in (select mgr from emp);
ENAME
----------
FORD
BLAKE
KING
JONES
CLARK
-
标签错误:<!-- #Label#
labelId=20160707140604
moduleId=1
classId=12231768634
orderby=2
fields=url,title,u_info
attribute=
datatypeId=22192428132
recordCount=3
pageSize=
<htmlTemplate><dt><img src="/images/index_26${index}.jpg" width="100" height="62" /><a href="$url" title="${title}">${title}</a><span>${api.left(u_info,60)}</span></dt></htmlTemplate>
-->
- 我要参加技术沙龙