简体   繁体   English

摆脱多个一对一的关系

[英]Get rid of multiple one-to-one relationships

I have multiple one-to-one relationships in the following data model between: 在以下数据模型之间,我具有多个一对一关系:

  • logins & accounts 登录名和帐户
  • donors & accounts 捐助者和帐户
  • patients & accounts 患者和账目

SQL Server Blood Bank data model SQL Server血库数据模型

I am facing troubles in altering the database, mainly caused by FK's related to one-to-one relationships , made only between PK'S . 我在更改数据库时遇到麻烦,这主要是由于FK仅与PK之间的一对一关系有关

My best guess is that all my troubles are caused by a bad design . 我最好的猜测是,我所有的麻烦都是由不良的设计引起的。 How can I get rid of the one-to-one dependencies? 如何摆脱一对一的依赖关系?

Any changes could be made.. 可以进行任何更改。

在此处输入图片说明

I think its so better than your database design. 我认为它比您的数据库设计更好。 Do you have any question? 你有什么问题吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM