当前位置: Oracle DBA培训网-优技培训 >> 071题库 >

【071题库】最新OCP-071考试题库解析-第34题

【071题库】最新OCP-071考试题库解析-第34题

071考试是OCP考试科目的一种,由于071考题多变,我们专门收集整理了最新的考试题库,并对这些考题进行讲解,希望可以帮助广大考生。

每周五晚8点,我们有免费的OCP解析公开课,地址:https://ke.qq.com/course/326223  OCP题库交流群:1015267481,验证ocp

-------------------------------------------------------

071题库-第34题、choose two

Which two statements are true regarding operators used with subqueries? (Choose two.)

A) =ANY and =ALL operators have the same functionality.

E) The NOT IN operator is equivalent to is NULL.

C) The

D) The NOT operator can be used with IN, ANY and ALL operators.

E) The IN operator cannot be used in single-row subqueries.

Answer:CD

(解析:051 曾经出现过,但是当时是单选题,答案是 D,这个语法比较少见。

其实就是把 NOT 放到整个表达式之前,下面条件执行的结果都是一样,考大家的逻辑思维能力:

WHERE NOT col IN (SELECT ...)(也可以是 WHERE col not IN (SELECT ...))

WHERE NOT col = ANY (SELECT ...)(大于、小于都可以)

WHERE NOT col = ALL (SELECT ...)(大于、小于都可以)

SQL> select deptno from emp

2 where not deptno in (select deptno from dept where deptno=10);

DEPTNO

----------

20

30

30

....

或者:

select deptno from emp

where not deptno = all (select deptno from dept where deptno=10);

技术沙龙MORE+

标签错误:<!-- #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> -->
我要参加技术沙龙