nORMALIZATION EXTRANOTES
nORMALIZATION EXTRANOTES
nORMALIZATION EXTRANOTES
TUTORIAL (EXTRA)
1. Given the dependency diagram, answer items a-c:
C
1 C
2 C
3 C
4 C
5
Table 1
Primary key: C1
C1 C2 Foreign key: None
Normal form: 3NF
Table 2
C1 C3 C4 C5 Primary key: C1 + C3
Foreign key: C1 (to Table 1)
Normal form: 2NF, because the
table exhibits the transitive
dependencies C4 C5
c. Create a database whose tables are at least in 3NF, showing the
dependency diagrams for each table.
Table 1
Primary key: C1
C1 C2 Foreign key: None
Normal form: 3NF
Table 2
Primary key: C1 + C3
C1 C3 C4 Foreign key: C1 (to Table 1)
C4 (to Table 3)
Normal form: 3NF
Table 3
Primary key: C4
C4 C5 Foreign key: None
Normal form: 3NF
Transitive Dependencies
New Tables
NOTE
You can assume that any given product is supplied by a single vendor but a vendor can
supply many products. Therefore, it is proper to conclude that the following dependency
exists:
PROD_NUM → PROD_DESCRIPTION, PROD_PRICE, VEND_CODE, VEND_NAME
(Hint: Your actions should produce three dependency diagrams.)
Partial dependency