Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
An existence constraint or existence dependency can occur between two entities. The term existence dependency means that an instance of one entity cannot exist without the existence of an instance of the other (related) entity.
Identifier Dependency
A special type of existence dependency occurs when the weak entity set does not have a candidate key, and its instances are indistinguishable without a relationship with another entity.
Referential Dependency:
Another special type of existence dependency, called the referential dependency, which occurs when a weak entity contains a foreign key ( the primary key of the corresponding strong entity ). This leads to an important type of constraint called a referential constraint. It states that a value of a foreign key attribute in the weak entity instance must always be equal to the value of the primary key of an associated strong entity instance. For example, if DeptName is an attribute of the FACULTY entity and this entity is existence dependent on DEPARTMENT entity, then DeptName is a foreign key for FACULTY. On the other hand, DeptName is the primary key of the DEPARTMENT entity. So according to referential dependency, the value of DeptName for every instance of FACULTY entity must match the value of DeptName in some instance of DEPARTMENT entity. Figure below shows, E-R diagram with referential dependency of FACULTY on DEPARTMENT.