Question: 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)](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f5030b1929f_13066f5030a6b1b6.jpg)
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
Get step-by-step solutions from verified subject matter experts
