Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following view, DEPT_SUMMARY, defined on the COMPANY database IN Figure 3.6: State which of the following queries and updates would be allowed on

Consider the following view, DEPT_SUMMARY, defined on the COMPANY database IN Figure 3.6:


State which of the following queries and updates would be allowed on the view. If a query or update would be allowed, show what the corresponding query or update on the base relations would look like, and give its result when applied to the database of Figure 3.6.

Figure 3.6


EMPLOYEE M4 Fname Minit Lname Ssn Bdate Address Sex Salary Super_ssn Dno John B Smith 123456789 1965-01-09 731 Fondren, Hous  

 

CREATE VIEW DEPT SUMMARY (D. C. TOTALS, AVERAGE_S) AS SELECT DNO, COUNT ("), SUM (SALARY), AVG (SALARY) FROM EMPLOYEE GROUP BY DNO:

Step by Step Solution

3.38 Rating (154 Votes )

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems A Practical Approach to Design Implementation and Management

Authors: Thomas Connolly, Carolyn Begg

6th Edition Global

132943263, 978-0132943260

More Books

Students also viewed these Databases questions

Question

Consider the following view defined on the Hotel schema:

Answered: 1 week ago

Question

=+Do flexible schedules change the demand for resources?

Answered: 1 week ago