Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Given a table Products with columns ( id , name, price, QTY ) , which of the following statements is TRUE? CREATE VIEW vTest AS
Given a table Products with columns id name, price, QTY which of the following statements is TRUE?
CREATE VIEW vTest AS SELECT name, price FROM Products;
INSERT INTO vTest VALUES iphone;
The INSERT statement will fail since the vTest view is nonupdatable
CREATE VIEW vTest AS SELECT name, price FROM Products WHERE price ;
INSERT INTO vTest VALUES iphone;
The INSERT statement will run successfully since the vTest view is updatable.
CREATE VIEW vTest AS SELECT FROM Products WHERE QTY ;
INSERT INTO vTest VALUES laptop;
The INSERT statement will run successfully since the vTest view is updatable.
CREATE VIEW vTest AS SELECT name, price AS discountedprice FROM Products;
INSERT INTO vTest VALUES headphones;
The INSERT statement will run successfully since the vTest view is updatable.
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