Transforming ER Diagrams into Relations using Lucid Chart||ERD To Relational Data Model Part I

Опубликовано: 05 Февраль 2025
на канале: Data Science Center
2,784
36

Each regular entity type in an ER diagram is transformed into a relation.
The name of entity type is generally assign to the relation or table.
Each simple or single value attribute of the entity type becomes an attribute of the relation.
The identifier of the entity type becomes the primary key of the corresponding relation.
When a regular entity type has a composite attribute. only the simple component attributes of the composite attribute are included in the new relation.
For multivalued attribute, two new relations are created.
First relation contains all of the attributes of the entity type except the multivalued attribute.
The second relation contains Primary key of first relation and multivalue attribute.
The primary key of second relation consist of the primary key of the first relation (which also becomes a foreign key in the second relation) and the multivalued attribute.
The name of the second relation should capture the meaning of the multivalued attribute.