OCP认证的071考试复杂多变,不断的有新考题出现,对很多考生造成了困扰,对此,我们专门收集整理了近期出现的071考试原题,并由专业人员对考题进行了讲解,帮助大家顺利通过071考试。
--------------------------------------------
071题库分享-第45题、choose the best answer:
View the Exhibit and examine the data in the EMPLOYEES table.
You want to generate a report showing the total compensation paid to each employee to date(迄今为止支付给每位员工的总补偿).
You issue the following query:
SQL>SELECT ename ||' joined on '|| hiredate ||
', the total compensation paid is '||
TO_CHAR(ROUND(ROUND(SYSDATE-hiredate)/365) * sal + comm)
"COMPENSATION UNTIL DATE"
FROM employees;
What is the outcome?
A) It executes successfully and gives the correct output.
B) It generates an error because the usage of the ROUND function in the expression is not valid.
C) It generates an error because the concatenation operator can be used to combine only two items.
D) It generates an error because the alias is not valid.
E) It executes successfully but does not give the correct output.
Answer:E
(解析:因为 comm 列上有空值,所以会导致某些计算的结果为空)
-----------------------------------------------
OCP解析公开课时间:【每周五晚8点】
OCP解析公开课地址:https://ke.qq.com/course/326223
OCP解析群资料分享:1015267481 验证:ocp
另外,除了OCP公开课,OCM题库直播也同步进行中,OCM最新题库大爆料-【每周四晚8点】,【微信群直播】,可以联系咨询老师进群参与