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: CREATVIEW NewPC
![Q5 [1 pt]: Using the following base Tables: Product(maker, model, type)](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f3b0e472933_56466f3b0e404727.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: CREATVIEW NewPC 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
