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

SQL Join Exercise

Uploaded by

Ankesh Halder
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views

SQL Join Exercise

Uploaded by

Ankesh Halder
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

SQL Join Exercise

1) Find All the Employees in Department Location 1700

2) Find the Second Highest Salary that Employees get in the Organization (Only Sal)

3) Find the employee first name last name , department name and job title of
employees where
where department id can be either 1 2 or 3

4) Find all the employee names with their corresponding manager names.

5) Find all the employees who get a better salary than the employees working in
department 2

6) Display all Employee IDs and Names of Employees whose Salary >=15000.

7) Display the highest and lowest Salary from each Department.

8) Display the names of the Department Heads of each Department.

9) Display all Employees under each Manager from each Department.

10) Display average salary of the Employees in each Department.

11) Display all the employees who's last name starts with the letter 'B' and has a
dependent.

12) Display all the employees along with their respective manager's name and
managers emp id.

13) Display all the employees along with their department name and location city.

14) Display all the employees who belong to the 'Europe' region.

15) Write a query to find out Total number of employee under each department
along with department location .

16) Write a query to find out employee count under each manager

17) Write a query to find out average salary of employees who are having same job
role.

18) Display the details of employee whose firstname has second character as 'e'.

19) Display the average salary of those employees who was hired between 1990 and
1991.

20) Display firstname (as FIRST NAME) and department name (as DEPT NAME) of
those employees whose salary is less than five thousand.

21) Display firstname, department name and salary for employees of IT department
and Sales department.

You might also like