0% found this document useful (0 votes)
7 views2 pages

Groupby Queries

Uploaded by

anshumruhi25
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views2 pages

Groupby Queries

Uploaded by

anshumruhi25
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

GROUP BY QUERIES

1. Find the highest salary in Employee table.

2. Find the total salary given to the managers.

3. Display the average salaries of all the clerks.

4. Display the number of employees in department number 20.

5. Display maximum salary in Department 30.

6. Display number of employees who are getting commission.

7. Display number of unique jobs in the employee table.

8. Find the number of employees Department wise.

9. Find the number of employees Job wise .

10.Find the total salary distribution job wise in the year 1981.

11.Display the number of employees for each job department number wise.

12.Display the number of employees for each department job wise.

13.List the number of employees in each department where the number is more
than 3.

14.List the department number and names of departments where at least 4 are
working in that department.

15.Display the Department number which is having maximum number of


employees.

16.List the details of the department where maximum number of employees are
working

17.List the department numbers where more than average numbers of


employees are working

18.List the manager name having maximum number of employees working


under him.

19.Check whether all the employee numbers are indeed unique.

20.Find out the most recently hired employees in each department.

21.List the number of employees and Average salary within each department for
each job
22.Find the average salary drawn for each job except for ‘President’.

23.List the department number and their average salaries for department with
the average salary less than the averages for all departments.

You might also like