Chapter 3 Flashcards

1
Q

What are the properties of a relation?

A

A table is a two-dimensional structure with rows and columns.
Each row represents a single entity occurrence, and all rows must be unique.
Each column represents an attribute with a distinct name.
Each cell contains a single atomic value.
All values in a column must be of the same data type.
Each column has a defined range of values, called the domain.
The order of the rows and columns doesn’t matter.
Each table must have a unique identifier for each row.

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

What are the 2 most important properties of the relational model?

A

Degree - number of its attributes.
Cardinality - number of its tuples.

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

What is a composite key?

A

It is a key composed with more than one attribute.

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

What is a superkey?

A

It is any key that uniquely identifies each row.

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

What is a candidate key?

A

It is a super key without any redundancies, a minimal super key

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

What is a primary key?

A

Unique identifier for each row in a database table.

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