Question: Consider the COMPANY relational database that you designed from Exercise 5 ( or use Exercise 5 solution and create one ) . Specify the following
Consider the COMPANY relational database that you designed from Exercise or use Exercise solution and create one
Specify the following queries in SQL on the COMPANY database. Show the result of each query.
a Retrieve the names of all employees in department who work more than hours per week on the 'ProductX' project.
b List the names of all employees who have a dependent with the same first name as themselves.
c Find the names of all employees who are directly supervised by 'Franklin Wong'.
Specify the following updates using the SQL update commands. Show the state of each relation after the update.
a Insert 'Robert',F'Scott', Main St Bellaire, TXM into EMPLOYEE.
b Insert 'John',M'spouse' into DEPENDENT.
c Delete the WORKSON tuples with Essn
d Modify the Mgrssn and Mgrstartdate of the DEPARTMENT tuple with Dnumber to and respectively.
e Modify the Hours attribute of the WORKSON tuple with Essn 'and Pno to
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
