Chapter 2, Level 3: Normalization & Relationships Flashcards

1
Q

What is (database) normalisation?

A

Normalisation is the process of reducing duplication in database tables.

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

What are the two Normal Form Rules?

A
  1. Tables must not contain repeating groups of date in 1 column.
  2. Tables must not contain redundant information i.e. repeating information.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How are foreign keys important to joined tables?

A

Foreign keys reference primary keys from other tables.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

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

What are the three different types of table relationships?

A

One-to-One
One-to-Many
Many-to-Many

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