LAB 03 single row & multiple row functions
LAB 03 single row & multiple row functions
1. Write down the result of the function calls in the first column to the second column
3. To display the employee number, name, salary, salary increase by 15% expressed as a whole number
(labeled as New Salary), the difference between old salary and new salary (labeled as Increment).
23SP-070-CS LAB 03 Fizza Mubeen (B)
4. To display the employee name and calculate the number of months between today and the date the
employee was hired (Labeled as Months_Worked). Order the results by the number of months employed
and round the number of months up to the closest whole number.
6. To display the employee’s name (labeled name) with the first letter capitalized and all other letters
lowercase and the length of their name (labeled length), for all employees whose name starts with J, A or
M.
7. To list the name, hiredate, and day of the week (labeled DAY) on which job was started. Order the result
by day of week starting with Monday.
23SP-070-CS LAB 03 Fizza Mubeen (B)
9. To display the department name, location name, number of employees and the average salary for all
employees in that department. Label the columns DNAME, LOC, NUMBER OF PEOPLE and SALARY,
respectively. Round the average salary to two decimal places.
23SP-070-CS LAB 03 Fizza Mubeen (B)
10. To display the employee name, department number and job title for all employees whose department
location is Dallas.
11. To display the difference between the highest and lowest salaries (Labeled as
DIFFERENCE)
12. To show the manager name, MANAGER, and the number of employees, NUM, working under him.