Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
考虑以下关系模式:
我正在尝试完全规范化(以第三范式)并确定功能依赖关系。但是,通过无休止的研究,我无法解决如何:
我该怎么办?
员工可以是客户,也可能有一天会成为经理。使用派对模式。“员工”或“客户”应该是一方扮演的角色。一个党有很多角色
人们可以没有地址、一个地址或多个地址。人们可以共享同一个地址。使用 Address 表和 PersonAddress 联结表。电话号码也一样。
您可能希望拥有个人客户和组织客户(公司或共享帐户)。使用派对模式。
为什么当所有其他表都使用 id 列时,Branch 不使用 BranchId?
您确定将客户分配给员工吗?如果员工休假怎么办?
为什么“市”和“镇”在科?