Course Content
Detailed Content of Database Management System
0/1
About Lesson

An entity is a real-world object or concept that has an independent existence and can be uniquely identified. In the context of a database, an entity is typically represented by a table.

| EmployeeID |   Name    |   Department   |
|------------|-----------|-----------------|
|    101     |  Alice    |   HR            |
|    102     |  Bob      |   Engineering   |
|    103     |  Carol    |   Marketing     |

In this example, each row represents an entity (an employee) with attributes like EmployeeID, Name, and Department.


An entity set is a collection of similar entities. It represents all instances of a particular entity type.

| EmployeeID |   Name    |   Department   |
|------------|-----------|-----------------|
|    101     |  Alice    |   HR            |
|    102     |  Bob      |   Engineering   |
|    103     |  Carol    |   Marketing     |

In this case, the entire table is the entity set representing all employees in the organization.


An entity type is a category or class of entities that share common attributes. It defines a set of entities that have similar characteristics.

| EmployeeID |   Name    |   Department   |
|------------|-----------|-----------------|
|            |           |                 |

The table above represents the entity type “Employee,” and it serves as a template for creating instances of employees. The actual data, as seen in the entity set table, populates this template.

In summary:

  • An entity is a single instance of a real-world object.
  • An entity set is a collection of similar entities.
  • An entity type is a category of entities that share common attributes.

The entity type provides the structure (attributes) that entities in the entity set will have. The entity set is the actual collection of instances or records in a database table, and each row in the entity set table represents a distinct entity.