Professional Documents
Culture Documents
Creating An Entity Relationship Diagram (Autosaved)
Creating An Entity Relationship Diagram (Autosaved)
RELATIONSHIP
DIAGRAM
5 MAJOR PARTS TO CREATE AN ERD’s
Entities
Attributes
Primary Key
Relationships
Cardinality
Student
ENTITY
INSTANCE
Student Student
School ID
FirstName
Primary Key – an attribute or group of attributes that uniquely
identifies an instance of the entity, it is a special attribute that MUST be
unique.
Relationship – describes how one or more entities interact
with each other.
Student Student Phone_Number
FirstName
Phone_Number
Cardinality – the count of instances that are allowed or more
necessary between entity relationships
Student Student Phone_Number
FirstName
Phone_Number
Cardinality (Minimum/Maximum)
SYMBOL MEANING
ONE – MANDATORY
MANY – MANDATORY
ONE – OPTIONAL
MANY - OPTIONAL
Advanced Syntax
• Independent Entity - is an entity that can exist without the help of another
entity
• Dependent Entity - There are situations when a child entity does require
attributes from the parent entity to uniquely identify an instance.
• Intersection Entity - It exists in order to capture some information about
the relationship between two other entities.
Validating an ERD
• Creating ERDs is pretty tough. It takes a lot
of experience to draw ERDs well, and there
are not many black-and white rules to help
guide you.
Design Guidelines