117.Which statements are true regarding the WHERE and HAVING clauses in a SELECT statement?
2016-03-07 16:05
603 查看
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.
答案:AC
解析:where是分组前排除行,having是分组后排除行,b错误,
having和where中的列字段,不需要必须出现在select中,按照执行语句的顺序,select是在他们的后边执行
排除D,E
(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.
答案:AC
解析:where是分组前排除行,having是分组后排除行,b错误,
having和where中的列字段,不需要必须出现在select中,按照执行语句的顺序,select是在他们的后边执行
排除D,E
相关文章推荐
- ensemble 总结 Kaggle-Ensemble-Guide
- make Image uImage与zImage的区别
- java String和StringBuilder、StringBuffer浅谈
- error: The requested URL returned error: 401 Unauthorized while accessing
- iOS mask 层 UIBezierPath path 放大
- require或include相对路径多层嵌套引发的问题
- UISegmentedControl设置样式(圆角,边框颜色)
- UITabBarItem title 和self.title设置不同的标题
- poj 2478 Farey Sequence(欧拉函数)
- iOS Core Animation Advanced Techniques的学习笔记(五)
- Requests模块官方文档
- iOS 点击键盘return按钮 文本框UiTextField 自动换行
- 《iOS Human Interface Guidelines》——Toolbar Bar
- workqueque 使用例子
- 413 Request Entity Too Large错误解决办法
- autoLayout cell中添加UILabel 多行显示问题
- 自定义UITableViewCell上的delete按钮
- 收藏文章 写的很好 可惜有些还是看看不懂额。。。RequireJS进阶:模块的定义与加载
- 【性能优化】【UI】性能优化之ListView
- [LeetCode]96. Unique Binary Search Trees