Chapter 2, Level 3: Normalization & Relationships Flashcards
1
Q
What is (database) normalisation?
A
Normalisation is the process of reducing duplication in database tables.
2
Q
What are the two Normal Form Rules?
A
- Tables must not contain repeating groups of date in 1 column.
- Tables must not contain redundant information i.e. repeating information.
3
Q
How are foreign keys important to joined tables?
A
Foreign keys reference primary keys from other tables.
4
Q
How do you meet the two Normalisation Rules?
A
Any information which is repeated should be placed in a new table. The existing and new tables could then be joined via their primary keys in another new table. This new table’s name by naming convention should be a combination of the two tables e.g. movies table and genres table joined, would be movies_genres.
5
Q
What are the three different types of table relationships?
A
One-to-One
One-to-Many
Many-to-Many