ER Diagram Symbols
An Entity-Relationship (ER) Diagram is a visual representation of entities, attributes, and their relationships in a database. It uses standardized symbols to depict different components, which makes it easier to design and understand the database structure before implementation.
1. Entity
- Symbol: Rectangle
- Meaning: Represents a real-world object or concept.
Types:
Â
Strong Entity: Normal rectangle.
Example: Student
Â
Weak Entity: Double rectangle.
Example: Dependent
(depends on Employee
)
2. Attribute
- Symbol: Ellipse (Oval)
- Meaning: Denotes a property or characteristic of an entity or relationship.
Types:
Â
Simple (Atomic): Single oval
Example: Name
Â
Composite: Oval with smaller ovals branching
Example: FullName
→ FirstName
, LastName
Â
Multivalued: Double oval
Example: PhoneNumbers
Â
Derived: Dashed oval
Example: Age
(derived from DateOfBirth
)
Â
Key Attribute: Underlined text in the oval
Example: RollNo
(Primary Key)
3. Relationship
- Symbol: Diamond
- Meaning: Shows how two or more entities are associated.
Types:
Â
Regular Relationship: Normal diamond
Example: Enrolled
between Student
and Course
Â
Identifying Relationship: Double diamond (used with weak entities)
4. Lines (Connections)
- Straight Line: Connects attributes to entities and entities to relationships.
- Double Line: Used to connect a weak entity to its identifying relationship.
5. Cardinality & Participation
Cardinality (Multiplicity): Indicates how many entities participate in a relationship.
- 1:1 → One-to-one
- 1:N → One-to-many
- M:N → Many-to-many
Â
Symbols:
- Often shown as numbers (1, N, M) or notations like (1,1), (0,N), etc.
Â
Participation:
- Total Participation: Double line (entity must participate)
- Partial Participation: Single line (entity may or may not participate)
Quick Symbol Reference Table
Component | Symbol | Description |
---|---|---|
Entity (Strong) | Rectangle | Represents a main object |
Entity (Weak) | Double Rectangle | Depends on another entity |
Attribute (Simple) | Oval | Single-valued property |
Attribute (Key) | Underlined Oval | Primary identifier |
Attribute (Derived) | Dashed Oval | Calculated from other attributes |
Attribute (Multivalued) | Double Oval | Multiple values possible |
Relationship | Diamond | Association between entities |
Identifying Relationship | Double Diamond | Links weak entity with owner |
Total Participation | Double Line | Mandatory role in relationship |
Partial Participation | Single Line | Optional role in relationship |
Conclusion
By using these ER diagram symbols, students can effectively design and analyze database schemas, ensuring clarity in structure and data relationships. It’s a foundational skill for DBMS design and normalization.