Database Management System (DBMS) / ER Model

What is Entity set?

🎯 What is Entity Set?

An Entity Set is a collection of similar types of entities that share the same attributes.

In simple terms:

  • An Entity is one object.

  • An Entity Set is a group of such objects stored in the database.


🎯 Example:

Let’s take an example from a university database:

πŸ‘€ Entity:

A single student | Student(ID: 101, Name: Swastika, Course: BSc)

πŸ§‘β€πŸŽ“ Entity Set:

All students in the college β€” for example:

  • Student(ID: 101, Name: Swastika, Course: BSc)

  • Student(ID: 102, Name: Aisha, Course: BTech)

  • Student(ID: 103, Name: Rahul, Course: BA)

πŸ‘‰ These form a Student Entity Set.



🧬 Types of Entity Sets:

πŸ”Ή Type

🧾 Description

Strong Entity Set

Has a primary key and exists independently

Weak Entity Set

Depends on a strong entity, lacks a complete primary key



βœ… Key Points:

  • πŸ“¦ Entity = One object

  • πŸ“š Entity Set = Collection of similar entities

  • πŸ”‘ Strong Entity Set has its own key

  • 🧷 Weak Entity Set needs a foreign key