33% found this document useful (3 votes)
2K views3 pages

Well Meadows Hospital Normalization

The document discusses normalizing a patient medication form database to first, second, third normal forms and BCNF. It identifies functional dependencies in the original data, illustrates the normalization process by breaking the data into multiple tables at each normal form, and identifies primary keys, alternate keys and foreign keys in the BCNF relations. It also provides an example of normalizing a dentist appointment table to BCNF and lists assumptions made about the data.

Uploaded by

Taqi Shah
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
33% found this document useful (3 votes)
2K views3 pages

Well Meadows Hospital Normalization

The document discusses normalizing a patient medication form database to first, second, third normal forms and BCNF. It identifies functional dependencies in the original data, illustrates the normalization process by breaking the data into multiple tables at each normal form, and identifies primary keys, alternate keys and foreign keys in the BCNF relations. It also provides an example of normalizing a dentist appointment table to BCNF and lists assumptions made about the data.

Uploaded by

Taqi Shah
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

DATABASE DESIGN: NORMALIZATION Q & A

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

(a)

Identify the functional dependencies represented by the data shown in the form in Figure Patient No Full Name Ward No Ward Name Drug No Name, Description, Dosage, Method of Admin Patient No, Drug No, Start Date Units per Day, Finish date

The functional dependencies for Bed No are unclear. If Bed No was a unique number for the entire hospital, then could say that Bed NoWard No. However, from further examination of the requirements specification, we can observe that Bed No 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 to first (1NF), second (2NF), third (3NF), and BCNF. First Normal Form Patient No, Drug No, Start Date, Full Name, Ward No, Ward Name, Bed No, Name, Description, Dosage, Method of Admin, Units per Day, Finish Date Second Normal Form Patient No, Drug No, Start Date, Ward No, Ward Name, Bed No, Units per Day, Finish Date Drug No, Name, Description, Dosage, Method of Admin

Patient No, Full Name Third Normal Form/BCNF Patient No, Drug No, Start Date, Ward No, Bed No, Units per Day, Finish Date Drug No, Name, Description, Dosage, Method of Admin Patient No, Full Name Ward No, Ward Name (c) Identify the primary, alternate, and foreign keys in your BCNF relations. Patient No(FK), Drug No(FK), Start Date, Ward No(FK), Bed No, Units per Day, Finish Date Drug No, Name, Description, Dosage, Method of Admin Patient No, Full Name Ward No, Ward Name Primary keys underlined.

The table shown in Figure lists dentist/patient appointment data. A patient is given an appointment at a specific time and date with a dentist located at a particular surgery. On each day of patient appointments, a dentist is allocated to a specific surgery for that day.

Describe and illustrate the process of normalizing the table shown in Figure to BCNF. State any assumptions you make about the data shown in this table.

1NF
staffNo

PK
aDate aTime dentistName patNo patName surgeryNo

fd1 fd2 fd3

fd4

fd5

fd2 and fd4 violates 2NF

2NF staffNo
aDate aTime patNo patName

staffNo

aDate

surgeryNo

staffNo

dentistName

Fd3 violates 3NF

3NF / BCNF
FK PK
staffNo aDate aTime

FK
patNo fd1 fd5

PK
staffNo dentistName fd2

FK PK
staffNo aDate surgeryNo fd4

PK
patNo patName Fd3

You might also like