w3d3 Flashcards

1
Q

summary data may not be used

A

in a where clause of a select(because it exists nowhere)

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

a view with summary data cannot

A

be joined with a base table or view(they are different things)

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

can use any data or view as the project of a select as long as

A

it doesn’t have summary data in it

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

updates to base tables

A

are immediately reflected in all views that encompass them

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

the only views that can be used for updating are

A

views of individual records from a single base table

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

the viewed table is updateable if and only if

A

the is updateable

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

CHECK OPTION

A

only applicable to updateable views

prohibits rows from migrating out of view

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

LOCAL CHECK OPTION

A

any inserts or updates to data in this view or other views derived from this view must not cause the row to dissappear from this view unless it dissappears in the table or view this view derives from

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

CASCADED CHECK OPTOIN

A

(default)
Any INSERTS or UPDATES to data in this view or other updates derived from this view must not cause the row to dissappear from this view

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

advantages of views

A

data independence, improved security, reduced complexity, customization

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

disadvantages of views

A

Update restriction (on complex views, still need single table views for updating)
Lack of updateability of view restricitons(need to drop and recreate)
performace (views are virtual and need to be created dynamically via queries unless materialized)

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

use views for user queries because

A

it limits access to data on a need to know basis
to remove the need to do a join at the application level
to isolate users to changes at the actual database level

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

use views for commonly used queries

A

to allow users to easily get the results they need

it is more efficient to have predefined views than to perform an ad hoc query

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