Tutorial 8: Relational Model and Database Normalization
Tutorial 8: Relational Model and Database Normalization
Exercises on Normalization
1. Candidate key is StudentNo, as if we know StudentNo we can find all other attributes from it
2. The original relation is in 2NF. There are no partial FDs so it is in 2NF at least. It is not in 3NF as
there is a transitive FD StudentNo → PrimaryMajor → School
3. 3NF relations:
1
Given the following relation and functional dependencies:
a) Identify the candidate key(s) and partial functional dependencies among attributes (If any)
b) Explain which NF the relation is in.
c) Convert the relation into a relation or set of relations in at least 3NF
UnitCode → UnitName
Q2. Each loan application is by one customer but each customer may make many applications
2
a) Convert this table to a single relation (called PART-SUPPLIER) in first normal form. Illustrate the
relation with the same sample data.
b) List the functional dependencies in PART-SUPPLIER and identify the candidate key(s).