Can a weak entity be involved in both identifying and non-identifying relationships with other tables?

别来无恙 提交于 2019-12-24 09:11:08

问题


Obviously a weak entity must be involved (as the child) in one or more identifying relationships, otherwise it would not be weak.

But can it, at the same time, also be the child in a non-identifying relationship?


回答1:


Yes, weak entity sets can participate in non-identifying relationships with other entities. By "child", I suppose you mean relationships in which the weak entity set is on the determining (many) side of the relationship. There is no restriction on the kinds of relationships in which weak entity sets may participate.

However, watch out for multiple identifying relationships. While a weak entity set can easily be the descendant of a chain of identifying relationships, multiple independent identifying relationships on the same weak entity set are unusual, and challenges the very notion of an entity set. See my answer to this question.

Note that your question title mentions relationships between tables, which confuses conceptual (ER) and physical (tabular) models. Entity relations are represented by tables, but so are relationship relations in general (only one-to-one and one-to-many relationships can be denormalized into the entity relation of a/the determining entity set, many-to-many and ternary and higher relationships still require their own tables).



来源:https://stackoverflow.com/questions/42990040/can-a-weak-entity-be-involved-in-both-identifying-and-non-identifying-relationsh

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!