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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Create View Syntax

A
CREATE VIEW nameofview WITH SCHEMABINDING
AS
SELECT fields
FROM SCHEMA.tbl
WHERE
GO;
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Deleting view syntax

A

DROP VIEW fullyqualifiedtblname

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Alter view syntax

A
ALTER VIEW nameofview 
AS
SELECT 
FROM
WHERE
GO
How well did you know this?
1
Not at all
2
3
4
5
Perfectly