Intro to Relational Model Flashcards

1
Q

Relational Model

A

organizes data into tables (relations) consisting of row (tuples) and columns (attributes)

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

Relational model does NOT

A

provide explicit relationships or links

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

Integrity constraints

A

conditions that every db state must satisfy

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

Examples of constraints

A

not null, primary key constraint, foreign key constraint

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

Primary Key

A

unique identifier

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

Foreign key

A

Relate a tuple from one table to another. Shows how two tables are related.

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

Schema-based contraints

A

Domain constraints
Key constraints
Entity integrity constraints
Referential integrity constraints

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

Domain constraints

A

Within each tuple, the value of each attribute A must be an atomic value from the domain of A

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

Key constraints

A

the value of attributes that form a key must be unique

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

Key properties

A

Uniqueness: two tuples cannot have identical values
Minimality: no subset of a key is unique

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

Entity integrity constraint

A

No primary key can be null

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

Referential integrity constraint

A

must maintain consistency bw two related tables (tuples must be of same domain)

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

Relational model benefits

A

very simple, easily understandable, set-oriented operation, solid theoretical foundation

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