Skip to content

Entity Relationship Model

ER Model

  • High-Level Data Model used to define the data elements and relatinship for a specified system.

  • It consists of entity, attribute and relationship.

  • ER Model


Entity

  • An entity can be an object, class, person or place.

  • Represented By square.

  • Types:

    • Strong Entity: They have key attribute.
    • Weak Entity: They dont have key attribute.

Attribute

  • Property of an entity.

  • Represented by Eclipse.

  • Types:

    • Key attribute

      • Represents a primary key.
      • Key Attribute
    • Composite Attribute

      • Attribute composed of other attribute.
      • Composite Attribute
    • Multi-valued Attribute

      • Can have More than one value.
      • Phone Number
    • Derived Attribute

      • Attribute derived from other attribute.
      • Represented by dashed ellipse.
      • Example: age

Relationship

  • One-to-one
  • One-to-one
  • One-to-many
  • One-to-many
  • Many-to-one
  • Many-to-one
  • Many-to-many
  • Many-to-many