ICT501 Exercise 4 More Functions
ICT501 Exercise 4 More Functions
KAMPUS SEREMBAN
ICT501
TITLE:
NAME STUDENT ID
NUR HAZIERA BINTI BAHAR 2019608162
CLASS: N4CS2413T2
1. Display each employee's name and hiredate from deptno 20. Make sure that you specify the
alias 'DATE_HIRED' after your expression otherwise the formatted column will wrap; it uses a
width of 80 characters which is the default for character columns.
ENAME DATE_HIRED
---------- --------------------------------
SMITH June, Thirteenth 1983
JONES October, Thirty-First 1983
SCOTT March, Fifth 1984
ADAMS June, Fourth 1984
FORD December, Fifth 1983
2. Display each employee name with hiredate, and salary review date. Assume review date is one
year after hiredate. Order the output in ascending review date order.
3. Print a list of employees displaying just salary if more than 1500. If exactly 1500 display 'On
Target', if less than 1500 display 'Below 1500'.
4. Write a query which will return the DAY of the week (ie. MONDAY), for any date entered in the
format: DD.MM.YY.
DAY
------------------------------------------------------
SATURDAY