CS2203 Unit 4 Written Assignment
CS2203 Unit 4 Written Assignment
To make the changes to get the relations into the first normal form, we need to get remove any
duplicates/ repeated groups and values from the value, and have each set of data identify with a
primary key. In the case of the hospital database management system, all relations have no
duplicates nor repeated values hence there are no changes that are needed (it is already in first
normal form).
To make the changes to get the relations into the second normal form, we need to make sure that
there are no partial dependency. To do this, we have to break the table into two parts, where the
candidate key: “iddoctor”, “Phone”, “Name”, and “Specialty”. Special in a non-key attribute, thus
we also need to create a separate table for specialty and Doctors. It should look like the image
below:
Third Normal Form:
To make the changes to get the relations into the third normal form, the table has to be in the
second normal form and non-prime attributes must depend on prime attributes. In our Appointment
Relation, “idpatient” is dependant on “iddoctor”, which is dependent on the “idappointment”. Thus
the “idpatient” transitively depends on “idappointment”, violating the third normal form. To fix
this, we need to create a separate table “PatientApointment”.
Sharma, N., Perniu, L., Chong, R. F., Iyer, A., Nandan, C., Mitea, A. C., Nonvinkere, M. &
Danubianu, M. (2010). Database fundamentals.