Bytes
rocket

Your Success, Our Mission!

6000+ Careers Transformed.

Components of ER Model

Last Updated: 9th September, 2026

Let’s go back to your café.
Now you’ve decided to organize things properly. You identify:

  • Customers (who comes)
  • Orders (what they buy)
  • Items (what you sell)

But just listing them isn’t enough…
You also need details like customer name, order date, and how everything is connected.

This is where the components of the ER Model come into play; they break your system into clear building blocks.

tabu 2026 (1).png

Main Components

The ER Model has three main components:

  1. Entity → Object (Student, Customer)
  2. Attribute → Details (Name, ID)
  3. Relationship → Connection (Enrolls, Places)

These three together form the complete structure of any database.

Entity

An Entity is a real-world object that we want to store data about.

Examples:

  • Student
  • Customer
  • Product

It is represented by a rectangle in ER diagrams.

Code Example

Entity

Example Data

Student101, Taniya, 19
ProductP01, Laptop, 50000

Real Life Example

  • In a college system, Student is an entity
  • In a bank system, Customer is an entity

tabu 20 (1).png

Attribute

An Attribute describes an entity (its properties).

Examples:

Student → Name, Age, ID
Product → Price, Name

Represented by an oval

Code Example

Attribute Type

Example

SimpleName
CompositeFull Name
DerivedAge (from DOB)

Real Life Example

  • Customer → Name, Phone Number
  • Order → Date, Amount

tabu 21 (1).png

Relationship

A Relationship shows how entities are connected.

Examples:

  • Student enrolls in Course
  • Customer places Order

Represented by a diamond

Code Example

Entity 1

Relationship

Entity 2

StudentEnrollsCourse
CustomerPlacesOrder

Real Life Example

  1. College System
    • Student → Enrolls → Course
  2. E-commerce
    • User → Buys → Product
  3. Bank System
    • Customer → Owns → Account

tabu 22 (1).png

Module 2: Components of ER ModelComponents of ER Model

Top Tutorials

Logo
Data Science

Python

Python is a popular and versatile programming language used for a wide variety of tasks, including web development, data analysis, artificial intelligence, and more.

8 Modules37 Lessons112803 Learners
Start Learning
Logo
Data Science

SQL

The SQL for Beginners Tutorial is a concise and easy-to-follow guide designed for individuals new to Structured Query Language (SQL). It covers the fundamentals of SQL, a powerful programming language used for managing relational databases. The tutorial introduces key concepts such as creating, retrieving, updating, and deleting data in a database using SQL queries.

9 Modules40 Lessons16154 Learners
Start Learning
Logo
Data Science

Data Science

Learn Data Science for free with our data science tutorial. Explore essential skills, tools, and techniques to master Data Science and kickstart your career

8 Modules31 Lessons9701 Learners
Start Learning
  • Official Address
  • 4th floor, 133/2, Janardhan Towers, Residency Road, Bengaluru, Karnataka, 560025
  • Communication Address
  • Follow Us
  • facebook
    instagram
    linkedin
    twitter
    youtube
    telegram

© 2026 AlmaBetter