Relational model Flashcards

1
Q

Relation

A

Table with columns and rows

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

Attribute

A

Named column of a relation

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

Tuple

A

Row of a relation

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

Domain

A

Set of allowable values for one or more attributes

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

Degree

A

Number of attributes a relation contains

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

Cardinality

A

Number of tuples a relation contains

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

Intension

A

Structure of the relation including its domains

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

Extension

A

Set of tuples currently in the relation

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

Superkey

A

Set of attributes that uniquely identifies a tuple in a relation

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

Candidate key

A

Minimal set of attributes that uniquely identifies a tuple in a relation

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

Primary key

A

Candidate key designated as the distinguishing key of a relation

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

Foreign key

A

Set of attributes in one relation referring to the primary key of a relation

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

Domain constraint

A

Every value of an attribute must be an element of the attribute’s domain or be null

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

Entity integrity constraint

A

No attribute of a primary key can be null

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

Referential integrity constraint

A

If a foreign key exists in a relation, then the foreign key value must match a primary key value of a tuple in the referenced relation or be null

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