Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Q5 [1 pt]: Using the following base Tables: Product(maker, model, type) PC(model, speed, ram, hd, price) Suppose we create the following View CREAT VIEWNewPC AS
Q5 [1 pt]: Using the following base Tables: Product(maker, model, type) PC(model, speed, ram, hd, price) Suppose we create the following View CREAT VIEWNewPC AS SELECT maker, model, speed, ram, hd, price FROM Product, PC WHERE Product,model= PC.model AND type-PC,; Notice that we have made a check for consistency: that the model number not only appears in the PC relation, but the type attribute of Product indicates that the product is a PC. a) Is this View updatable? b) Write an instead-of trigger to handle an insertion into the view? c) Write an instead-of trigger to handle an update of the price? d) Write an instead-of trigger to handle a deletion of a specified tuple from this view
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