OCP-1Z0-051 第17題 null參與運算後仍是null
阿新 • • 發佈:2019-02-12
SQL> SELECT ename||' joined on '||hiredate|| 2 ', the total compensation paid is '||
3 TO_CHAR(ROUND(ROUND(SYSDATE-hiredate)/365) * sal + comm)
4 "COMPENSATION UNTIL DATE"
5 FROM emp;
COMPENSATION UNTIL DATE
----------------------------------------------------------------------
SMITH joined on 17-DEC-80, the total compensation paid is
ALLEN joined on 20-FEB-81, the total compensation paid is 53100
WARD joined on 22-FEB-81, the total compensation paid is 41750
JONES joined on 02-APR-81, the total compensation paid is
MARTIN joined on 28-SEP-81, the total compensation paid is 42650
BLAKE joined on 01-MAY-81, the total compensation paid is
CLARK joined on 09-JUN-81, the total compensation paid is
SCOTT joined on 19-APR-87, the total compensation paid is
KING joined on 17-NOV-81, the total compensation paid is
TURNER joined on 08-SEP-81, the total compensation paid is 49500
ADAMS joined on 23-MAY-87, the total compensation paid is
COMPENSATION UNTIL DATE
----------------------------------------------------------------------
JAMES joined on 03-DEC-81, the total compensation paid is
FORD joined on 03-DEC-81, the total compensation paid is
MILLER joined on 23-JAN-82, the total compensation paid is
14 rows selected.
3 TO_CHAR(ROUND(ROUND(SYSDATE-hiredate)/365) * sal + comm)
4 "COMPENSATION UNTIL DATE"
5 FROM emp;
COMPENSATION UNTIL DATE
----------------------------------------------------------------------
SMITH joined on 17-DEC-80, the total compensation paid is
ALLEN joined on 20-FEB-81, the total compensation paid is 53100
WARD joined on 22-FEB-81, the total compensation paid is 41750
JONES joined on 02-APR-81, the total compensation paid is
MARTIN joined on 28-SEP-81, the total compensation paid is 42650
BLAKE joined on 01-MAY-81, the total compensation paid is
CLARK joined on 09-JUN-81, the total compensation paid is
SCOTT joined on 19-APR-87, the total compensation paid is
KING joined on 17-NOV-81, the total compensation paid is
TURNER joined on 08-SEP-81, the total compensation paid is 49500
ADAMS joined on 23-MAY-87, the total compensation paid is
COMPENSATION UNTIL DATE
----------------------------------------------------------------------
JAMES joined on 03-DEC-81, the total compensation paid is
FORD joined on 03-DEC-81, the total compensation paid is
MILLER joined on 23-JAN-82, the total compensation paid is
14 rows selected.