Skip to content
UNASPACE

Entity Relationship Diagrams

ERDs provide a visual representation of database structure, showing entities, attributes, and relationships.

  • Rectangles represent entities (tables)
  • Strong entities exist independently
  • Weak entities depend on other entities
  • Ovals represent attributes (columns)
  • Key attributes are underlined
  • Composite attributes contain sub-attributes
  • Derived attributes are calculated from other attributes
  • Diamonds represent relationships between entities
  • Lines connect entities to relationships
  • One: Single line
  • Many: Crow’s foot (three lines)
  • Optional: Circle on line
  • Mandatory: Perpendicular line
  • 1:1 - One-to-one relationship
  • 1:M - One-to-many relationship
  • M:N - Many-to-many relationship
  1. Identify Entities: Determine main objects/concepts
  2. Define Attributes: List properties for each entity
  3. Identify Relationships: Determine how entities connect
  4. Set Cardinality: Define relationship constraints
  5. Add Keys: Identify primary and foreign keys
  • Use clear, descriptive names
  • Maintain consistent notation
  • Show all important relationships
  • Document business rules
  • Validate with stakeholders

Last updated:

Built with passion by Ngineer Lab