OCP-1Z0-051-2015-27题
2015-07-01 16:58
357 查看
QUESTION NO: 27
Which statement is true regarding the UNION operator?
A. The number of columns selected in all SELECT statements need to be the same
在所有SELECT语句中选择的列的数量必须相同。正确
B. Names of all columns must be identical across all SELECT statements
列名在所有SELECT语句中必须是相同的,错误,列名不必相同。
C. By default, the output is not sorted
默认情况下,结果不排序,错误,在默认的情况下,输出按SELECT子句中列的升序进行排序。
D. NULL values are not ignored during duplicate checking
在重复项检查过程中不会忽略NULL值,正确。
Answer: AD
Explanation:
The SQL UNION query allows you to combine the result sets of two or more SQL SELECT statements. It removes duplicate rows between the various SELECT statements.
Each SQL SELECT statement within the UNION query must have the same number of fields in the result sets with similar data types.
UNION运算符用于返回由任一查询选定的所有行。使用UNION运算符可以返回多个表中的所有行,但不包括重复行。
准则:
• 所选列的数量必须相同。
• 所选列的数据类型必须属于相同的数据类型组(如数字或字符)。
• 列名不必相同。
• UNION将对所有选定的列执行操作。
• 在重复项检查过程中不会忽略NULL值。
• 默认情况下,输出按SELECT子句中列的升序进行排序。
Which statement is true regarding the UNION operator?
A. The number of columns selected in all SELECT statements need to be the same
在所有SELECT语句中选择的列的数量必须相同。正确
B. Names of all columns must be identical across all SELECT statements
列名在所有SELECT语句中必须是相同的,错误,列名不必相同。
C. By default, the output is not sorted
默认情况下,结果不排序,错误,在默认的情况下,输出按SELECT子句中列的升序进行排序。
D. NULL values are not ignored during duplicate checking
在重复项检查过程中不会忽略NULL值,正确。
Answer: AD
Explanation:
The SQL UNION query allows you to combine the result sets of two or more SQL SELECT statements. It removes duplicate rows between the various SELECT statements.
Each SQL SELECT statement within the UNION query must have the same number of fields in the result sets with similar data types.
UNION运算符用于返回由任一查询选定的所有行。使用UNION运算符可以返回多个表中的所有行,但不包括重复行。
准则:
• 所选列的数量必须相同。
• 所选列的数据类型必须属于相同的数据类型组(如数字或字符)。
• 列名不必相同。
• UNION将对所有选定的列执行操作。
• 在重复项检查过程中不会忽略NULL值。
• 默认情况下,输出按SELECT子句中列的升序进行排序。
相关文章推荐
- Jxl创建和读取excel文件
- 去除广告插件多点(a.banner.doubleClick)
- nodejs初学-----helloworld
- 几种常见的软件负载均衡的算法。
- 测试用例设计——边界值法
- 30分钟LINQ教程
- strcpy 一题
- Android自动化测试(UiAutomator)简要介绍
- 初识Volley的基本用法
- swift实作app 交流分項十(動畫特效)
- 函数式编程初探
- Android 图片在SD卡及包下的存储
- 邓白氏编码官方查询地址
- do{}while(0)宏的作用的定义
- 摘录-IT企业必读的200个.NET面试题-03 .NET类型语法基础
- 安装 NoMachine(NX) client and server
- 简单理解AOP(面向切面编程)
- 《算法导论》 — Chapter 8 线性时间排序
- Delta extraction for 0FI_GL_04 for every 30 minutes
- MVC快速入门