【发布时间】:2012-05-06 19:25:41
【问题描述】:
我有一个包含以下实体的 e-r 模型:Doctor, Patient, Human,Doctor -> Human 和 Patient -> Human 之间存在生成关系。我正在尝试创建一个关系模型。那么,哪个模型是正确的:第一个还是第二个?
1)
Human (Name, Surname, Sex, Address)
Doctor(License number, specification)
Patient(Insurance number, diagnosis)
2)
Doctor(Name, Surname, Sex, Address, License number, specification)
Patient(Name, Surname, Sex, Address, Insurance number, diagnosis)
实体 Human 不是必需的。
附:刚接触关系模型。
【问题讨论】:
标签: relational-database entity-relationship