Database Group Course work. Normalization Assignment
Database Group Course work. Normalization Assignment
GROUP MEMBERS
ABIGABA ROLAND REG NO: SEP22/BCS/1422U
TUMUKUNDE MARKJOE REG NO: SEP22/BCS/1647U
• Normalization can be a time-consuming process that requires careful planning and execution.
• It can lead to an increase in the number of tables in a database, which can make queries more
complex and time-consuming.
• Normalization may lead to a loss of data if not done correctly.
• Normalization can lead to a decrease in performance if not done correctly.
• Normalization can lead to an increase in disk space usage due to the creation of additional tables.
• Normalization can lead to a decrease in flexibility due to the creation of additional tables.
• Normalization can lead to an increase in the complexity of the database design, which can make it
more difficult to maintain and modify the database.
14.14
a) The functional dependencies in the form are:
Patient Number -> Full Name, Ward Number, Bed Number, Ward Name
Drug Number -> Name, Description, Dosage, Method of Admin, Units per Day, Start Date, Finish Date
(b) To normalize the attributes to 3NF:
Remove partial dependencies by creating new tables for each set of related data.
Patient Table: Patient Number (PK), Full Name, Bed Number
Ward Table: Ward Number (PK), Ward Name
Medication Table: Drug Number (PK), Name, Description
Prescription Table: Prescription ID (PK), Patient Number (FK), Drug Number (FK), Dosage, Method
of Admin, Units per Day, Start Date and Finish Date
c) Keys:
Primary keys:
Patient Table – Patient Number;
Ward Table – Ward number;
Medication Table – Drug number;
Prescription table – Prescription ID.
Foreign keys in the prescription table are Patient number and Drug number linking to the patient and
medication tables respectively.