Relational Model Flashcards

1
Q

When is the relational model created?

A

In the logical design stage.

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

What do the columns and rows define in a relation?

A

Col = Attributes, Rows = Instances (tuple)

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

What is the cardinality and degree of a relation?

A

Cardianlity = No. of instances in a relation, Degree = No. of attributes in a relation.

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

What are the 3 relational keys?

A

Primary Key, Foreign Key, Candidate Key.

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

What are the 2 main properties that a valid relation must follow?

A

No name clashes of attributes; Domain for attributes must be consistent; value names consistent.

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

Define a relational Database…

A

A relational database is a network of relations.

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

What is the difference between a relational schema and a relation instance?

A

Relational schema : The name and attributes that represent a relation. Relation Instance : A tuple of the relation.

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

What are the main constraints in relational models?

A

Integrity Constraints : Entity Integrity - Can’t be null
Referential Integrity - Foreign key must be primary key of its home relation
Domain Constraints - Set of allowable values that an attribute can take.

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

Define views…

A

Views are external sub schemas that can be customised for users.

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

Give some benefits of views…

A

Reduce complexity, improve security.

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

From where is data pulled to views?

A

View data is pulled from the base relation of the internal level.

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

What does it mean that data in the view is dynamic and derived?

A

View data is derived and dynamic. This means it can operate on the pulled data independently
of the internal level.

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