Primary Key Dependency:
In a barred relationship, the primary key of one entity (called the "weak" or "dependent" entity) includes the primary key of another related entity (called the "strong" or "parent" entity).
This means that the dependent entity cannot exist without the parent entity.
Graphical Representation:
In Entity-Relationship (ER) diagrams, a barred relationship is represented by a bar on the line connecting the two entities. This bar indicates that the primary key of the dependent entity includes the primary key of the parent entity.
In the example you mentioned:
BANK Entity:
ACCOUNT Entity:
Has a composite primary key: ACCOUNT Number and BANK Number.
This means that the account number (ACCOUNT Number) is only unique within a specific bank (BANK Number).
Unique Identification:
Referential Integrity:
A barred relationship occurs when the primary key of one entity includes the primary key of another related entity, indicating a strong dependency between them. In the example, the ACCOUNT entity depends on the BANK entity to form its primary key, and this is represented by a bar on the relationship line.