大数据就业实战培训 Oracle就业实战培训
071考试题库之前是比较稳定的,但随着Oracle的调整,071考试不断的增加新的考题,增加了考试的难度,所以我们专门收集整理了这些考试,并对这些考题进行解析,希望可以对考生有帮助。
每周五晚8点,我们有免费的OCP解析公开课,地址:https://ke.qq.com/course/326223 OCP题库交流群:1015267481,验证ocp
-------------------------------------------------------
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 列上有空值,所以会导致某些计算的结果为空)