Relations 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 an attribute?

A

Named column of a relation

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

What is a domain?

A

The Type of a column

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

What is a tuple?

A

A row in a table; a tuple

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

What is a relational database?

A

A collection of normalised relations

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

What is the type of a table/relation?

A

Set([l1 : T1, …, ln : Tn])

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

What is a superkey?

A

Any column or set of columns from a relation that uniquely identifies a record.

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

What is a candidate key?

A

A key with the minimum possible number of attributes needed to uniquely identify a row.

So there are no superkey subsets of a candidate key.

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