0% found this document useful (0 votes)
11 views

Lab 4

The document contains 25 questions about analyzing data from employee tables including finding total/average/maximum/minimum salaries, employee counts by department/project/year/location, highest paid employees by department, and average salaries by department.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views

Lab 4

The document contains 25 questions about analyzing data from employee tables including finding total/average/maximum/minimum salaries, employee counts by department/project/year/location, highest paid employees by department, and average salaries by department.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

ASSIGNMENT-4

NAME : DEEPAN KUMAR K

REG. NO.:2021503508

1.Find the total salary, average salary, maximum salary and minimum salary of the Programmer table.

2.Find the total number of employees assigned to each department.

3.Find the total number of employees assigned to each department starting with the most employees.

4.Find the count of employee who earns more than 250000.


5.List the projid withaverage salary between 200000 and300000.

6.List the number of employees in each project, except the KCW, sorted high to low.

7.Find the number of employees by hired year and Projid.


8.Find the number of employees by hired year and Projid. Display the details only if the count is above one.

9.Find the number of employees by hired year and jobid. Display the details only if the count is above one and their salary sum is above 200000.

10.Find the employee whose salary is greater than average salary of same department.

11.Find the number of employees of each project based on their privilege.Display the Employee Count, privilege and projid.
12.List the department's name and the number of employees in each department that has more than one.

13.Find the employee whose salary is greater the average salary of each department.

14.Calculate the average pay for each department.Display the details

15.Find the deptno and its employee count that has more than 2 employees assigned.
16.Display the employee details with their department name

17.Display the employee name and his/her department location whose works in the deptno P1002.

18.List the total number of employees for each department together with department information.

19.Find the count of unique projid and count of unique taskno.


20.Find the employee who earns highest salary.

21.Find the employee who earns highest salary in the department P1001.

22.Find the employee who earns SECOND highest salary.

23.Find the employee who earns SECOND highest salary in the department P1001.

24.Display the number of employees working in each location. Display the employee count and the location.

25.Find the employee who earns third highest salary


26. Use the job id to find the average income, which is presented from highest to lowest. The privilege is
"secret," and the job id does not begin with a vowel. The average salary ought to be higher than 200000.

You might also like