OCP-1Z0-051 第67题 ORDER BY子句应用
来源:互联网 发布:漫画算法系列 编辑:程序博客网 时间:2024/05/22 11:58
一、原题
Which two statements are true regarding the ORDER BY clause? (Choose two.)
A. It is executed first in the query execution.
B. It must be the last clause in the SELECT statement.
C. It cannot be used in a SELECT statement containing a HAVING clause.
D. You cannot specify a column name followed by an expression in this clause.
E. You can specify a combination of numeric positions and column names in this clause.
答案:BE
二、题目翻译A. It is executed first in the query execution.
B. It must be the last clause in the SELECT statement.
C. It cannot be used in a SELECT statement containing a HAVING clause.
D. You cannot specify a column name followed by an expression in this clause.
E. You can specify a combination of numeric positions and column names in this clause.
答案:BE
关于ORDER BY子句的描述,哪两句话是正确的?(选择两个)
A. 查询语句首先执行ORDER BY子句。
B. 必须放在SELECT语句的最后。
C. 它不能用在包含HAVING子句的SELECT语句中。
D. 不能在该子句中指定一个带有表达式的列。
E. 可以在该子句中指定一个数字位置和列名的组合。
三、题目解析A. 查询语句首先执行ORDER BY子句。
B. 必须放在SELECT语句的最后。
C. 它不能用在包含HAVING子句的SELECT语句中。
D. 不能在该子句中指定一个带有表达式的列。
E. 可以在该子句中指定一个数字位置和列名的组合。
A选项不正确,select语句中,ORDER BY是在select子句之后执行的,从ORDER BY子句中可以使用别名就可以看出。
B选项正确,ORDER BY子句是放在最后的。
C选项不正确,包含having子句的,是有group by分组语句,也可以在最后用order by 子句排序。
D选项不正确,ORDER BY子句中可以使用表达式,上一题中即可看出。
E选项正确,在ORDER BY 子句中,可以使用数字指定select后的第几列,也可以使用列名,也可以混合使用。
B选项正确,ORDER BY子句是放在最后的。
C选项不正确,包含having子句的,是有group by分组语句,也可以在最后用order by 子句排序。
D选项不正确,ORDER BY子句中可以使用表达式,上一题中即可看出。
E选项正确,在ORDER BY 子句中,可以使用数字指定select后的第几列,也可以使用列名,也可以混合使用。
0 0
- OCP-1Z0-051 第67题 ORDER BY子句应用
- OCP-1Z0-051 第66题 ORDER BY子句应用
- OCP-1Z0-051 第112题 GROUP BY,ORDER BY子句
- OCP-1Z0-051 第63题 order by 应用
- OCP-1Z0-051 第156题 集合操作中的ORDER BY 子句
- OCP-1Z0-051 补充题库 第7题 ORDER BY 子句
- OCP-1Z0-051 补充题库 第10题 集合操作中的ORDER BY子句
- OCP-1Z0-051 第111题 GROUP BY子句
- OCP-1Z0-051 第114题 HAVING,GROUP BY子句的应用
- OCP-1Z0-051 第115题 HAVING,GROUP BY子句的应用
- OCP-1Z0-051 第116题 GROUP BY,HAVING子句应用
- OCP-1Z0-051 第118题 GROUP BY,HAVING子句
- OCP-1Z0-051 第119题 GROUP BY,HAVING子句的顺序
- OCP-1Z0-051 第64题 order by使用别名注意事项
- OCP-1Z0-051 第65题 order by降序排序
- OCP-1Z0-051 第68题 ORDER BY的默认值
- OCP-1Z0-051 第69题 ORDER BY 的null值排序
- OCP-1Z0-051 第70题 order by排升序,降序
- centos 安装ngnix+php+php-fpm
- 项目一班长和学生的信息
- android 程序启动说明
- 使用可靠的I2C代码
- 项目一班长和学生的信息(扩展)
- OCP-1Z0-051 第67题 ORDER BY子句应用
- Conversion to Dalvik format failed: Unable to execute dex 解决Android打包错误
- 家用小型中央空调发展的现状与趋势
- 动态IP或无公网IP时外网远程桌面访问内网windows
- Java多线程 快速入门(一)
- 项目2 - 职员有薪水了
- tomcat5不支持jstl1.2
- NDK 和 JNI 总结
- Codeforces 276E(Little Girl and Problem on Trees)