BCA / B.Tech 9 min read

Entity-Relationship (ER) Model

The Entity-Relationship (ER) Model in DBMS:

The ER Model is a high-level data modeling technique used for database design. It provides a conceptual framework that visually represents how data is structured and related within a system. ER models are typically visualized through an ER Diagram.

Main Components of the ER Model:
  1. Entities: Real-world objects or concepts about which data is stored (e.g., `Student`, `Course`). An entity can be:
    • Strong Entity: Exists independently and has its own primary key.
    • Weak Entity: Depends on a strong entity for its existence.
  2. Attributes: Properties or characteristics of an entity (e.g., a `Student` has attributes like `Name`, `Age`, `Roll_Number`).
  3. Relationships: Associations between two or more entities (e.g., a `Student` "enrolls in" a `Course`). Relationships have cardinality that defines the numerical relationship between entities (One-to-One, One-to-Many, Many-to-Many).