Normalisation Flashcards
What is a composite key?
A key table linking a many-to-many relationship table.
How to make a database in first normal form?
Each record is unique.
Each field has a unique name.
Data must be atomic.
No repeated or similar data.
What does it mean for data to be atomic?
Data is distinct and can’t be broken down any further.
How to make a database in second normal form?
Non-key fields must depend on every part of the primary key.
If you don’t have any composite primary keys, 2NF isn’t required.
How to make a database in third normal form?
There are no non-key fields that depend on another non-key field.
If you can find a key that isn’t the primary key which depends on another field that isn’t the primary key then it’s not in 3rd form.
All fields must depend on the key, the whole key and nothing but the key.