Activity 3
Activity 3
Activity 3
Insertion Anomalies
In inserting a new patient particular to make an appointment with the Dentist, we need
to enter the correct detail for the dentist (ex. dentistID). For instance, to insert the
details of new patient in patientID, patientName and an appointment, we must enter
the correct details of the Dentist (dentistID and dentistName) in such way the patient
details are consistent with values for the designated Dentist.
Deletion Anomalies
Example if we want to delete a patient named Ralph Mayono, two records need to be
deleted as in row 3 and 4. This anomaly also obvious when we want to delete the
dentistName, multiple records need to be deleted to maintain the data integrity. When
we delete a dentist record, for instance Ana Maria Sy, the details about his patients also
lost from the database.
Modification anomalies
With redundant data, if we want to change the value of one column of a particular
Dentist, example the dentistName, we must update all the Dentist records that assigned
to the particular patient otherwise the database will become inconsistent. Appointment
schedules also need modification because different Dentist has different schedules.
2. Assume that a patient may have more than one appointment on a given day and
may avail of the different dental services.
Illustrate the process of converting the table from the 1NF to the 2NF and the 3NF.
1NF:
FD1
2NF:
dentistID dentistName
3NF: FK
dentistID apptSchedDate apptSchedTime patientID
FK
dentistID dentistName
patientID patientName
dentistID dentistName
FK
patientID patientName