zoukankan      html  css  js  c++  java
  • 051-17

    View the E xhibit 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 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.

    ROUND(ROUND(SYSDATE-hiredate)/365) 如果SYSDATE-hiredate小于183则round四舍五入就等于0

  • 相关阅读:
    单词统计
    意见汇总
    项目评审结果
    注册表键值
    C++ 创建快捷方式
    XPosed 示例
    直播流程
    C++隐藏任务栏图标
    C++ 屏幕录制
    DUILIB UI创建过程
  • 原文地址:https://www.cnblogs.com/Babylon/p/8074092.html
Copyright © 2011-2022 走看看