Programming Assignment Unit 4 Solution
Programming Assignment Unit 4 Solution
Normalization Rules
When determining 1st Normal Form, you should ask yourself: Are there any repeating
groups or multivalued attributes? If there are, you should determine how they should be
broken into relations and related to the existing relations?
Now look at the Appointment and Patient relations. Medicines attribute of Appointment
and Allergies attribute of Patient are actually multivalued attributes. Each of these requires
a new relation and a linking relation as shown in E-R diagram below.
As you can see in Doctor relation; SpecialtyName which is a non-key attribute depends
transitively on SpecialtyNumber. Therefore, we need to create a new relation as shown in
E-R diagram below.
rd
Figure 1: E-R Diagram in 3 Normal Form