其中一些已上市的字段都是原子的,有些是重复的。这些字段应分离成至少三个不同的表:
PATIENTS
ID
Name
Address
Contact Number
Date of Birth
Gender
Mother Name
Father Name
DOCTORS
ID
Name
Address
Home Tel (it may be necessary to move phone numbers into a separate table)
Mobile Tel (what happens if you have three numbers for a doctor?)
Qualification
Date of birth (this seems unnecessary)
APPOINTMENTS
ID
Patient (foreign key to patients table)
Doctor (foreign key to doctors table)
Date
Time
Diagnosis
Prescription
Date of bill
Total bill charge
票据大概应在一个单独的表;如果您为预约发出多张帐单,该怎么办?您可能还需要一张名为TESTS的表格,其中将包含各种实验室测试的名称(和成本)以及称为APPOINTESTS(或类似的)的表格,这些表格可以存储无论哪个测试进行的任何测试。
你的问题就像是这是一门课程的任务,在这种情况下,你应该添加'家庭作业'标签。
(Y)非常感谢 – 2014-12-08 16:40:28
@JahidulIslam:如果我写的回答你的问题,那么'接受'答案(点击绿色箭头)。 – 2014-12-09 05:55:16
你一直忽略visit_date和visit_time,是不是必须的,你提供的三张表是在1NF – 2014-12-12 04:18:37