SQL Exercises5623-Students
SQL Exercises5623-Students
SQL Exercises5623-Students
Table – EmployeeSalary
EmpId Project Salary Variable
421 P1 12000 0
2. Write an SQL query to fetch the EmpId and FullName of all the employees working
under the Manager with id – ‘986’.
3. Write an SQL query to fetch the number of all employees working in project ‘P1’.
4. Write an SQL query to find the maximum, minimum, and average salary of the
employees.
5. Write an SQL query to find the employee id whose salary lies in the range of 9000 and
15000. Display full name and date of joining.
6. Write an SQL query to fetch those employees who live in Toronto and work under the
manager with ManagerId – 321.
7. Write an SQL query to fetch all those employees who work on Projects other than P1.
Display full name and city.
11. Write SQL query/s to insert the last 2 records into the EmployeeDetails table.
12. Write an SQL query to remove the row from the EmployeeDetails table for Walter White
Note: You may use the phpMyAdmin to test your SQL statements. Be sure to open first your
database and specific table
Click this button to run
query