Question: Please create the database in the textbook page 162 (which has 6 tables) and write SQL script (Please use MySQL. Workbench is optional). You can

Please create the database in the textbook page 162 (which has 6 tables) and write SQL script (Please use MySQL. Workbench is optional). You can use create and insert scripts from Lab session. Please hand in table creation script, question itself with the question number, SQL statement, and the query result for each question. Please use only standard SQL. Note: you can copy and paste the queries and answer tables and then past those in Word document (a) Retrieve the names of employee in department 5 who work more than 10 hours per week on the 'ProductX' project. (b) List the names of employees who have a dependent with the same first name as themselves. (c) Find the names of employees that are directly supervised by 'Franklin Wong'. (d) For each project, list the project name and the total hours per week (by all employees) spent on that project. (f) Retrieve the names of employees who do not work on any project. (g) For each department, retrieve the department name, and the average salary of employees working in that department. (h) Retrieve the average salary of all female employees. (i) Find the names and addresses of employees who work on at least one project located in Houston but whose department has no location in Houston. (j) List the last names of department managers who have no dependents. (k) Find the names of employees and the names of the projects that the employees are working on. (I) Find the names of employees who are not working on the project that is not controlled by the employee's own department. (Employees who work on only the employee's own department's projects). EMPLOYEE DEPARTMENT DEPT LOCATIONS WORKS ON PROJECT
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
