Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

7.9. Consider the following view, DEPT_SUMMARY, defined on the COMPANY database in Figure 5.6: CREATE VIEW DEPT_SUMMARY (D, C, Total_s, Average_s) AS SELECT FROM GROUP

image text in transcribedimage text in transcribed

7.9. Consider the following view, DEPT_SUMMARY, defined on the COMPANY database in Figure 5.6: CREATE VIEW DEPT_SUMMARY (D, C, Total_s, Average_s) AS SELECT FROM GROUP BY Dno, COUNT (), SUM (Salary), AVG (Salary) EMPLOYEE Dno 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 correspond- ing query or update on the base relations would look like, and give its result when applied to the database in Figure 5.6. a. SELECT FROM DEPT_SUMMARY; b. SELECT D, C FROM DEPT_SUMMARY WHERE TOTAL S 100000

Step by Step Solution

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_2

Step: 3

blur-text-image_step3

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

Visual Basic6 Database Programming

Authors: John W. Fronckowiak, David J. Helda

1st Edition

ISBN: 0764532545, 978-0764532542

More Books

Students also viewed these Databases questions

Question

1. Write down two or three of your greatest strengths.

Answered: 1 week ago