Answered step by step
Verified Expert Solution
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
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