T
TC
speedo said:Hi, Can anyone please help me with this project i'm doing for a Dental
Surgery. I've Normalized the data into 4 tables as shown below.
Patients ID (primary key)
name
phone
Looks ok.
Surgeons ID (primary key)
name
Phone
Looks ok.
Treatment ID (primary key)
name
price
Ok. I guess that is the "default" price for each treatment. Presumeably
there will be "actual" prices somewere else, to account for that fact that
patient Tom might get a discount from surgeon Jane, etc.
Appointments ID
date/time (P.Key)
Surgeons ID (P.Key)
Patients ID
Treatment ID
This depends on what you mean by an "appointment". Say 3 patients visit a
surgeon for a group discussion. Is that one appointment, or three
appointments that happen to be with the same surgeon at the same time? So,
define the term "appointment".
The problem is I get the same Patient with say, 3 appointments at 10.00.
How can one patient have 3 appointments at the same time? Again, you need to
clearly define what an "ppointment" is, before we can make any suggestions
about the appointment table.
HTH,
TC