考试科目:1Z0-082
考试题量:90
通过分数:60%
考试时间:150min
原文链接:【云贝教育】Oracle 19c OCP 082题库解析(24) - 课程体系 - 云贝教育 (yunbee.net)
本文为云贝教育郭一军(微信:guoyJoe)原创,请尊重知识产权,转发请注明出处,不接受任何抄袭、演绎和未经注明出处的转载。
24.Which three statements are true regarding the UNION and UNION ALL operators?
A.The number of columns selected by the first SELECT statement can be greater than the number selected in subsequent SELECT statements
B.Duplicates are eliminated automatically by the UNION ALL operator
C.The number of columns selected in each SELECT statement must be identical
D.NULIS are not ignored during duplicate checking
E.The names of columns selected in each SELECT statement must be identical
F.The names of columns selected in each SELECT statement can be identical
G.Duplicates can optionally be eliminated by the UNION operator
参考答案:CDF
解析:
A.错: 列数量应该一致
B.错:union all不会删除重复项
C.对:identical是相同的意思,集合操作列数应该相同
D.对:空值不会被忽略,可以用SELECT NULL FROM dual UNION SELECT 1 FROM dual测试
E.错:列名可以不一样,以第一个集合的列名为准
F.对:列名可以相同也可以不同,以第一个SQL为准
G.union 自动消除重复项目
有疑问加站长微信联系(非本文作者)