Flash cards
Review the key moves
1/4
Core idea
What is the main idea behind SQL CREATE VIEW Keyword?
Lesson checks
Practice each idea before moving on
Short Mimo-style checks built from this lesson's code, terms, and sequence.
1Quick choice
Which statement best captures the main point of this lesson?
2Fill blank
Complete the missing token from the example code.
___ VIEW [Brazil3Order
Put the learning moves in the order that makes the concept easiest to apply.
The following SQL creates a view that selects all customers from Brazil:
A view is a virtual table based on the result set of an SQL statement.
The CREATE VIEW command creates a view.
Create View
The CREATE VIEW command creates a view.
A view is a virtual table based on the result set of an SQL statement.
The following SQL creates a view that selects all customers from Brazil:
Example
CREATE VIEW [Brazil
Customers] AS
SELECT
CustomerName, ContactName
FROM Customers
WHERE
Country = "Brazil";Query The View
We can query the view above as follows:
Example
SELECT * FROM [Brazil Customers];