Question: Scenario: In a database with a Products table containing columns ProductID, ProductName, and StockQuantity, which SQL query would create a view named LowStockProducts to retrieve

Scenario: In a database with a Products table containing columns ProductID, ProductName, and StockQuantity, which SQL query would create a view named LowStockProducts to retrieve products with a stock quantity less than 20?
Context:
Products Table Columns:
ProductID
ProductName
StockQuantity
A
CREATE VIEW LowStockProducts AS
SELECT ProductID, ProductName, StockQuantity
FROM Products
WHERE StockQuantity <20;
B
CREATE VIEW LowStockProducts AS
SELECT *
FROM Products
WHERE StockQuantity <20;
C
CREATE VIEW LowStockProducts (ProductID, ProductName, StockQuantity) AS
SELECT *
FROM Products
WHERE StockQuantity <20;
D
CREATE VIEW LowStockProducts AS
SELECT ProductID, ProductName, StockQuantity
FROM Products
GROUP BY StockQuantity
HAVING StockQuantity <20;

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!