Views Flashcards
0
Q
3 types of views
A
DAV
Data views - used to examine and manipulate data from base tables
Aggregate views - displays information that is a result of aggregating data. This view is not editable and best used for reports or statistical data.
Validation views - used to implement data integrity.
1
Q
What is it?
A
It’s a virtual table
The contents are defined by a query
Data can be modified in most views
2
Q
Create View Syntax
A
CREATE VIEW nameofview WITH SCHEMABINDING AS SELECT fields FROM SCHEMA.tbl WHERE GO;
3
Q
Deleting view syntax
A
DROP VIEW fullyqualifiedtblname
4
Q
Differences between VIEW & ITVF (inline table value function
A
Both are single statement definition
Both return a tbl dataset.
Differences: ITVF can accept parameter(s) VIEWS READ/WRITE to DBase ITVF READ DBase only VIEWS can be indexed (indexed view)
5
Q
Alter view syntax
A
ALTER VIEW nameofview AS SELECT FROM WHERE GO