当前位置: Oracle DBA培训网-优技培训 >> 071题库 >

【071题库】最新OCP-071考试题库解析-第45题

【071题库】最新OCP-071考试题库解析-第45题

071考试是OCP考试科目的一种,由于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 列上有空值,所以会导致某些计算的结果为空)

技术沙龙MORE+

标签错误:<!-- #Label# labelId=20160707140604 moduleId=1 classId=12231768634 orderby=2 fields=url,title,u_info attribute= datatypeId=22192428132 recordCount=3 pageSize= <htmlTemplate><dt><img src="/images/index_26${index}.jpg" width="100" height="62" /><a href="$url" title="${title}">${title}</a><span>${api.left(u_info,60)}</span></dt></htmlTemplate> -->
我要参加技术沙龙