【2019年8月版本】Oracle OCP认证 071考试原题-32
最新学讯:近期OCP认证正在报名中,因考试人员较多请尽快报名获取最近考试时间,报名费用请联系在线老师,甲骨文官方认证,报名从速!
我要咨询【2019年8月版本】OCP 071认证考试最新版本的考试原题-32-CUUG整理
OCP的071考试,在8月份左右全部换了新题,近期考试的题也全部不包括之前的题库了,这次Oracle更新071考试题库,虽然全都是新题,但跟之前的相比也有关联,比如把之前的考题稍微变换一下数字、更新一下日期、或者再加一个错误选项等等。
对于2019年8月份的更新,我们CUUG已经进行了收集整理,并给出初步的答案和讲解,仅供参考,希望对考OCP 071认证的同学有帮助。
choose three
Examine this SQL statement:
SELECT cust_id, cus_ last_name "Last Name"
FROM customers
WHERE country_id = 10
UNION
SELECT cust_id CUST_NO, cust_last_name
FROM customers
WHERE country_id = 30
Identify three ORDER BY clauses, any one of which can complete the query successfully.
A) ORDERBY 2, 1
B) ORDER BY "CUST_NO"
C) ORDER BY 2,cust_id
D) ORDER BY CUST_NO
E) ORDER BY "Last Name"
Answer:ACE
(解析:此题的解析跟下面的解析一样,答案就是按照解析的总结规律找出来的。)
071-140 题目:
SELECT department_id "DEPT_ID", department_name, 'b' FROM departments
WHERE department_id=90 UNION
SELECT department_id, department_name DEPT_NAME, 'a' FROM departments
WHERE department_id=10
Which two ORDER BY clauses can be used to sort output?
A. ORDER BY DEPT_NAME;
B. ORDER BY DEPT_ID;
C. ORDER BY 'b';
D. ORDER BY 3;
Correct Answer: BD
(解析:通过实验发现别名必须是用双引号概括起来的才可以用来排序;而且发现取了别名(别名用双引号概括)的列的名字也不能用来排序;没有用双引号概括起来的别名的列名可以用来排序;order by 3,可以根据显示的列的顺序进行排序。
注意 union 排序的的时候 order by 要写在语句的最后;发现只能在第一条 select 语句中的列进行排序。)
SQL> select empno "CUST_NO",ename "LAST NAME",'a' FROM emp
2 UNION
3 SELECT EMPNO ,ENAME,'b' FROM emp
4 ORDER BY empno;
ORDER BY empno
*
第 4 行出现错误:
ORA-00904: "EMPNO": 标识符无效