4.5. Normalization 4th Normal Form
No multi-valued dependencies
4.5.1. Problem
id (PK) |
firstname |
lastname |
|
---|---|---|---|
1 |
Melissa |
Lewis |
|
1 |
Melissa |
Lewis |
|
2 |
Mark |
Watney |
|
3 |
Rick |
Martinez |
Note, that Melissa has two emails: work email mlewis@nasa.gov and private email mlewis@gmail.com.
4.5.2. Solution
id (PK) |
firstname |
lastname |
---|---|---|
1 |
Melissa |
Lewis |
2 |
Mark |
Watney |
3 |
Rick |
Martinez |
id (PK) |
astronaut_id (FK) |
|
---|---|---|
1 |
1 |
|
2 |
1 |
|
3 |
2 |
|
4 |
3 |