Converting ER Diagram in To Table
Converting ER Diagram in To Table
There are several processes and algorithms available to convert ER Diagrams into Relational
Schema. Some of them are automated and some of them are manual. We may focus here on the
mapping diagram contents to relational basics.
Mapping Entity
An entity is a real-world object with some attributes.
• Entity's attributes should become fields of tables with their respective data types.
Mapping Relationship
A relationship is an association among entities.
Mapping Process
• Add the primary keys of all participating Entities as fields of table with their respective data types.
• Declare a primary key composing all the primary keys of participating entities.
Mapping Process
• Declare primary key of higher-level table and the primary key for lower-level table.