OCP-1Z0-051-V9.02-117题
来源:互联网 发布:丁力软件 编辑:程序博客网 时间:2024/05/17 05:11
117. Which statements are true regarding the WHERE and HAVING clauses in a SELECT statement?
(Choose all that apply.)
A. The HAVING clause can be used with aggregate functions in subqueries.
B. The WHERE clause can be used to exclude rows after dividing them into groups.
C. The WHERE clause can be used to exclude rows before dividing them into groups.
D. The aggregate functions and columns used in the HAVING clause must be specified in the SELECT list
of the query.
E. The WHERE and HAVING clauses can be used in the same statement only if they are applied to
different columns in the table.
Answer: AC答案解析:
参考:http://blog.csdn.net/rlhua/article/details/12871951
A,having可以用在聚合函数的子句里。正确
B,分组之后不能使用where来限制,因为where只能限制行,不能限制组,错误
C,分组之前可以使用where来限制所要输出的行,正确
D,在having子句的聚合函数或者字段不一定要在select列表中,错误。
E,在同一句子中,where和having可以都使用,可以应用在不同的字段,也可以相同的字段。
- OCP-1Z0-051-V9.02-117题
- OCP 1Z0 052 V9.02 117
- OCP-1Z0-051-V9.02-1题
- OCP-1Z0-051-V9.02-1题
- OCP-1Z0-051-V9.02-1题
- OCP-1Z0-051-V9.02-11题
- OCP-1Z0-051-V9.02-12题
- OCP-1Z0-051-V9.02-14题
- OCP-1Z0-051-V9.02-15题
- OCP-1Z0-051-V9.02-17题
- OCP-1Z0-051-V9.02-18题
- OCP-1Z0-051-V9.02-21题
- OCP-1Z0-051-V9.02-118题
- OCP-1Z0-051-V9.02-120题
- OCP-1Z0-051-V9.02-32题
- OCP-1Z0-051-V9.02-33题
- OCP-1Z0-051-V9.02-93题
- OCP-1Z0-051-V9.02-94题
- 杭电ACM 1002题
- 1-14 实验11 获取网络拓扑
- 如何构建平衡二叉树(AVL树)
- UML中几种类间关系:继承、实现、依赖、关联、聚合、组合的联系与区别
- 【HEVC】目前H265分析软件推荐
- OCP-1Z0-051-V9.02-117题
- HTML编辑器 KindEditor已配置可以直接使用
- putty远程连接ubuntu
- 贪心法解登山机器人问题
- 数组排列
- java获取泛型类型
- 必须加添强制索引的Sql语句
- cocos2d-x 简单屏幕适配
- Java中重载方法的使用原则