ITPub博客

首页 > 数据库 > Oracle > Oracle Certificate Profession 1Z0-051-17

Oracle Certificate Profession 1Z0-051-17

原创 Oracle 作者:LuiseDalian 时间:2014-05-09 07:56:05 0 删除 编辑
(17)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:

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 generates an error because the alias is not valid.

B. It executes successfully and gives the correct output.

C. It executes successfully but does not give the correct output.

D. It generates an error because the usage of the       ROUND function in the expression is not valid.

E. It generates an error because the concatenation operator can be used to combine only two items.


答案:(C)

解析:

有些记录的comm为空。


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/17013648/viewspace-1157190/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2012-02-06

  • 博文量
    1986
  • 访问量
    6040856