Relational Database Structure Flashcards

1
Q

What is a relation?

A

A table with columns and rows

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

What is a tuple?

A

A row of a relation. They can appear in any order.

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

What is an attribute?

A

A named column of a relation. It can appear in any order.
Every attribute is defined by a domain, which may be distinct or not.

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

What is the degree?

A

The number of attributes in a relation.

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

What is the cardinality?

A

The number of tuples in a relation.

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

What is a relational database?

A

A collection of normalised relations with distinct relational names.

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

What is a superkey?

A

Attribute/s that uniquely identify a tuple within a relation.

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

What is a candidate key?

A

A superkey such that no proper subset is a superkey within the relation.
BASICALLY all possible primary keys.

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

What is a primary key?

A

The candidate key that is selected to identify tuples uniquely.

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

What is an alternate key?

A

Candidate keys not selected

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

What is a foreign key?

A

Attribute/s within one relation that matches the candidate keys of some relation

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