Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started