Database Management System (DBMS) / ER Model

Define ER Model and ER Diagram

πŸ§‘β€πŸŽ“ What is ER Model?

The Entity-Relationship (ER) Model is a high-level data model used to visually describe the structure of a database by identifying:

  • Entities

  • Attributes

  • Relationships

It was introduced by Peter Chen in 1976.


πŸ” Purpose of ER Model:

  • To design a conceptual schema of a database.

  • To understand the real-world structure of data before implementation.

  • Helps bridge the gap between users and designers.


πŸ“¦ Main Components of ER Model:

Component

Description

Symbol in ER Diagram

Entity

Real-world object (person, place, thing)

Rectangle 🟦

Attribute

Property of an entity

Ellipse 🟠

Relationship

Association between entities

Diamond πŸ”·

Primary Key

Uniquely identifies an entity

Underlined Attribute

Weak Entity

Cannot exist without another entity

Double Rectangle ⬜⬜

Derived Attribute

Calculated from another attribute

Dashed Ellipse



🎯 Why ER Diagrams are Useful:

  • Easy to communicate with non-technical stakeholders

  • Acts as a blueprint for creating actual database tables

  • Helps in normalization and identifying redundancy


🧠 Summary Table

Term

Meaning

ER Model

A conceptual framework to design a database

ER Diagram

Visual representation of entities and their relations