Question: Consider the relational database of Figure. Using SQL, define a view consisting of manager-name and the average salary of all employees who work for that

Consider the relational database of Figure. Using SQL, define a view consisting of manager-name and the average salary of all employees who work for that manager. Explain why the database system should not allow updates to be expressed in terms of this view.

employee (employee-name, street, city) works (employee-name, company-name, salary) mpany (compa-, ity) manages

employee (employee-name, street, city) works (employee-name, company-name, salary) mpany (compa-, ity) manages (employee-name, manager-name)

Step by Step Solution

3.46 Rating (169 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Create view salinfo as select managername avgsalary from ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Document Format (1 attachment)

Word file Icon

16-CS-DB (141).docx

120 KBs Word File

Students Have Also Explored These Related Databases Questions!