0% found this document useful (0 votes)
951 views1 page

Normalization Example

The document examines a patient medication form and identifies functional dependencies and the process of normalizing the data. It finds that patientNo depends on fullName, wardNo depends on wardName, and wardName depends on wardNo. DrugNo depends on name, description, dosage, and methodOfAdmin. PatientNo, drugNo, and startDate depend on unitsPerDay and finishDate. Normalizing the data results in relations in first normal form, second normal form, and third normal form, which are illustrated. The primary, alternate, and foreign keys are identified for the relations in third normal form.

Uploaded by

LongNguyễn
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
951 views1 page

Normalization Example

The document examines a patient medication form and identifies functional dependencies and the process of normalizing the data. It finds that patientNo depends on fullName, wardNo depends on wardName, and wardName depends on wardNo. DrugNo depends on name, description, dosage, and methodOfAdmin. PatientNo, drugNo, and startDate depend on unitsPerDay and finishDate. Normalizing the data results in relations in first normal form, second normal form, and third normal form, which are illustrated. The primary, alternate, and foreign keys are identified for the relations in third normal form.

Uploaded by

LongNguyễn
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

Examine the Patient Medication Form for the Wellmeadows Hospital case study shown in Figure 14.18.

(a)

Identify the functional dependencies represented by the data shown in the form in Figure 14.18.
patientNo fullName
wardNo wardName
wardName wardNo
drugNo name, description, dosage, methodOfAdmin
patientNo, drugNo, startDate unitsPerDay, finishDate
The functional dependencies for bedNo are unclear. If bedNo was a unique number for the entire
hospital, then could say that bedNo wardNo. However, from further examination of the
requirements specification, we can observe that bedNo is to do with the allocation of patients on
the waiting list to beds.

(b)

Describe and illustrate the process of normalizing the data shown in Figure 14.19 to First (1NF),
Second (2NF), and Third (3NF).
First Normal Form
patientNo, drugNo, startDate, fullName, wardNo, wardName, bedNo, name, description,
dosage, methodOfAdmin, unitsPerDay, finishDate
Second Normal Form
patientNo, drugNo, startDate, wardNo, wardName, bedNo, unitsPerDay, finish Date
drugNo, name, description, dosage, methodOfAdmin
patientNo, fullName
Third Normal Form
patientNo, drugNo, startDate, wardNo, bedNo, unitsPerDay, finish Date
drugNo, name, description, dosage, methodOfAdmin
patientNo, fullName
wardNo, wardName

(c)

Identify the primary, alternate, and foreign keys in your 3NF relations.
patientNo (FK), drugNo(FK), startDate, wardNo(FK), bedNo, unitsPerDay, finish Date
drugNo, name, description, dosage, methodOfAdmin
patientNo, fullName
wardNo, wardName (AK)
(Primary keys underlined.)

You might also like