SQL Sheet
SQL Sheet
SQL Sheet
Company Database Schema
3- In the department table insert new department called "DEPT IT”, with id=
100, MgrSSN = 112233 as a manager for this department. The start date
for this manager is '2006-08-12'
5- Display the Department id, Department Name and its manager id and the
Manager name.
6- Display the project name and departments’ name that control them.
7- Display the dependent name for all the dependence and the name of the
employee they depend on him/her.
8- Retrieve the employee first name, project name of all employees work in
department 10 who works more than or equal 10 hours ordered by
first name.
9- For each department >>> display department name and number of its
employees -- if its average salary is less than 1200.
11- Find the project number, the controlling department name, the
department manager last name, address and birthdate. For each project
located in ‘Cairo’ City.
12- For each department, retrieve the department name and the
maximum, minimum and averagesalary of its employees.