Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

State which of the following queries and updates would be allowed in this view. If a particular query or update would be allowed, show what

State which of the following queries and updates would be allowed in this view. If a particular 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.

Q1. SELECT * FROM NURSE_SUMMARY;

Q2. SELECT D, C FROM NURSE_SUMMARY WHERE TOTAL_S > 100000;

Q3. SELECT D, AVERAGE_S FROM NURSE_SUMMARY WHERE C > (SELECT C FROM NURSE_SUMMARY WHERE D=4);

Q4. UPDATE NURSE_SUMMARY SET D=3 WHERE D=4;

Q5. DELETE FROM NURSE_SUMMARY WHERE C > 4;

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: 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 Design Implementation And Management

Authors: Peter Robb,Carlos Coronel

5th Edition

061906269X, 9780619062699

More Books

Students also viewed these Databases questions

Question

Why is the System Build Process an iterative process?

Answered: 1 week ago