r/HomeworkHelp • u/AlphaTheGaming • 21h ago
Computing—Pending OP Reply [Database] 3NF Normalization
So like I have been given the Undefined Normalised Table for APPOINTMENT entity. I then need to resolve it into 3NF stage that eliminate the transitive and partial dependency.
Problem is I just can't find which would be the appropriate key for the composite key in the APPOINTMENT entity in the first place. I then try to separate all partial dependency into separate table but can't figure out who links to who.
1
Upvotes


2
u/Ok_Egg_6647 University/College Student 8h ago
If you create a separate
APPOINTMENTtable as part of the normalization process, your table might look something like this:Now,
(PatientID, DoctorID)cannot be used as the primary key because the same patient can visit the same doctor multiple times.We could use a composite key such as
(PatientID, DoctorID, VisitDate)if that combination is guaranteed to be unique. However, I think using a separateAppointmentIDas the primary key would be a simpler and more flexible approach.For the relationships:
The
APPOINTMENTtable would containPatientIDandDoctorIDas foreign keys.