Normalisation Flashcards

1
Q

When to go to 2NF?

A

Only when PK is made up of >1 column

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

What is 1NF?

A

Enforces the rule is that each cell can only contain a single value from the correct domain

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

What is 2NF?

A

A table in which the values of each non-PK column are determined by the values in all the columns that make up the PK

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

How to test if table is in 2NF?

A
  1. Identify the composite PK columns
  2. Check for any non-PK columns that have only partial functional dependency on the PK
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Full Functional Dependency

A

All PK column values to determine the value in a non-PK column

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

Partial Functional Dependency

A

If any subset of PK columns always maps to the same value

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

What is 3NF?

A

A table in which the values in all non-PK columns can only be determined from the PK columns and no other columns

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

Transitive dependency

A

Occurs when a non-PK column is functionally dependent on another non-PK column

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