Normalisation Flashcards
When to go to 2NF?
Only when PK is made up of >1 column
What is 1NF?
Enforces the rule is that each cell can only contain a single value from the correct domain
What is 2NF?
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 to test if table is in 2NF?
- Identify the composite PK columns
- Check for any non-PK columns that have only partial functional dependency on the PK
Full Functional Dependency
All PK column values to determine the value in a non-PK column
Partial Functional Dependency
If any subset of PK columns always maps to the same value
What is 3NF?
A table in which the values in all non-PK columns can only be determined from the PK columns and no other columns
Transitive dependency
Occurs when a non-PK column is functionally dependent on another non-PK column