ITPub博客

首页 > 数据库 > Oracle > OCP 1Z0 051 133

OCP 1Z0 051 133

原创 Oracle 作者:LuiseDalian 时间:2014-05-26 05:54:59 0 删除 编辑
(133)Which two statements are true regarding subqueries? (Choose two.)

A. A subquery can retrieve zero or more rows.

B. Only two subqueries can be placed at one level.

C. A subquery can be used only in SQL query statements.

D. A subquery can appear on either side of a comparison operator.

E. There is no limit on the number of subquery levels in the WHERE clause of a SELECT statement.

答案:(A、D)

解析:

-- B(X)

SELECT a.empno, a.ename, b.job, b.sal, c. deptno

FROM (SELECT empno, ename FROM emp) a, (SELECT empno, job, sal FROM emp) b, (SELECT empno, deptno FROM emp) c

WHERE a.empno = b.empno AND a.empno = c.empno;

-- D正确

SELECT * FROM emp WHERE (SELECT sal FROM emp WHERE empno = 7369) = sal;

-- E(X),WHERE子句中的子查询的嵌套深度最大为255

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/17013648/viewspace-1169636/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: OCP 1Z0 051 138
下一篇: OCP 1Z0 051 134
请登录后发表评论 登录
全部评论

注册时间:2012-02-06

  • 博文量
    1986
  • 访问量
    6040940