SQL CREATE OR REPLACE VIEW Syntax
|
CREATE OR REPLACE VIEW view_name AS
SELECT column_name(s) FROM table_name WHERE condition |
Now we want to add the "Category" column to the "Current Product List" view. We will update the view with the following SQL:
|
CREATE VIEW [Current Product List] AS
SELECT ProductID,ProductName,Category FROM Products WHERE Discontinued=No |








0 comments:
Post a Comment