OCP-1Z0-051-2015-31题

QUESTION NO: 31
Which two statements about sub queries are true? (Choose two.)关于子查询
A. A sub query should retrieve only one row.
B. A sub query can retrieve zero or more rows.
C. A sub query can be used only in SQL query statements.
D. Sub queries CANNOT be nested by more than two levels.
E. A sub query CANNOT be used in an SQL query statement that uses group functions.
F. When a sub query is used with an inequality comparison operator in the outer SQL statement,
the column list in the SELECT clause of the sub query should contain only one column.
Answer: B,F
Explanation: sub query can retrieve zero or more rows, sub query is used with an
inequality comparison operator in the outer SQL statement, and the column list in the SELECT
clause of the sub query should contain only one column.

A,子查询至少返回一行,A不对。

B,子查询可以返回一行或者多行,也可以返回0行。B对
C,子查询不仅可以用在查询语句,也可以用在插入和更新语句。所以C错
D,WHERE子句中的嵌套子查询最多能嵌套255层,所以不仅仅是两层,所以D错误
E ,子查询不能用在查询语句group方法,错误。
F,子查询可以出现在任何一方的一个比较运算符。select查询语句必须包含至少一列。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值