SQL Exercise

1. Retrieve the names of all employees in department 5 who work more than
10 hours per week on the ProductX project
2. List the names of all employees who have a dependent with the same first
name as themselves.
3. Retrieve the birth date and address of the employee(s) whose name is
‘John B. Smith’.
4. Retrieve the name and address of all employees who work for the
‘Research’ department.
5. For every project located in ‘Stafford’, list the project number, the
controlling department number, and the department manager’s last name,
address, and birth date.
6. For each employee, retrieve the employee’s first and last name and the first
and last name of his or her immediate supervisor.
7. Find all employees who were born during the 1960s.
8. Retrieve all employees whose address is in Houston, Texas.
9. Show the resulting salaries if every employee working on the ‘ProductX’
project is given a 10% raise.
10.Retrieve all employees in department 5 whose salary is between $30,000
and $40,000.
11.Retrieve a list of employees and the projects they are working on, ordered
by department and, within each department, ordered alphabetically by last
name, then first name.
12.Find the names of all employees who are directly supervised by ‘Franklin