Views Flashcards

1
Q

Relational table

A

Description of a table, including a list of attributes together with any integrity constraints, primary and foreign key, etc…,

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

Relational Variable

A

Actual table with data in it

It is a variable because if any data is added, removed or updated in it, its actual VALUE changes –> like a variable in any programming language

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

Base Relational Variable

A

Relational variable that exists as some form of physical data, stored somehow

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

Derived Relational Variable

A

Does not ever exist physically

Remains as a description (expression), evaluated when it is encountered in a program

TYPICALLY OBSERVED USING VIEWS -> views enable derived variables to exist temporarily, for certain purposes, without ever being stored for longer than is needed

User not necessarily aware that they are using a view, rather than a table –> has the same type as Base RV –> has the same closure properties as a table

Views are not evaluated, but stored in the catalog under a given name

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

Understanding Views

A

Views are not evaluated, but are stored in the catalog under a given name

Alterations in the underlying data from which the View is built, are immediately reflected in the View

Alterations made to the data in the view are also reflected in the underlying data

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

Reasons for using views

A

1) Concurrency: Lots of different users can view data in different ways –> can create views for different perspectives / different roles that people are in

2) Security: If user is only allowed to see a particular subset of some data, then only give them access to a specific subset that exists

3) Logical Independence: Views make your database robust to changes –> underlying structure of database may change, but views keep access consistent

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