Practice 3

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 6

2. To display the employee number, last name , salary and salary increased by 15.

5%(expressed as
a whole number) for each employee. Label column as New Salary

3. Answer from no.2


4. From no. 3 add column that subtracts the old salary from the new salary. Label the column
Increase
8. Displays the first eight characters of the employee’s last names and indicates the amount of
their salary with arsterick. Sort data in descending order of salary
7. To display the last name and salary for all employees. Format the salary to be 15 character long,
left-padded with $ symbol. Label the column as SALARY
6. Display the last name and calculate the number of months btween today and the date on which
the employee was hired. Label column as MONTHS_WORKED. Order your results by the number
of months employed. Round the number of months up to closest whole number
9. Display the last name and number of weeks employed for all employees in department 90. Label
the number of weeks column as TENURE. Truncate the number of weeks value to 0 decimal
places. Show the record in decscending order

You might also like