hamburger

What is the Entity Set in DBMS?

By BYJU'S Exam Prep

Updated on: September 25th, 2023

Entity Set in DBMS (database management system) is a real-world item with particular properties called attributes that determine the entity’s nature The entity is an object that exists and is distinguishable from other objects. The entity set in DBMS can be a real-world object with an existence. Entities are distinct, which means that each entity in a pair of entities possesses a property that distinguishes one from the other.

For example, a person with a given UID is an entity as he can be uniquely identified as one particular person or for Professor entity, the attributes are Professor_Name, Professor_Address, Professor_Salary, etc. Therefore, the attribute value gets stored in the database. We have provided the information related to the entity set in DBMS and the types of an entity set in detail.

Download Complete Databases Formula Notes PDF

Download Formulas for GATE Computer Science Engineering – Programming & Data Structures

What is Entity Set in DBMS?

An entity may be concrete (person) or abstract (job). An entity set in DBMS is a collection of similar entities. (All persons having an account at the bank). Entity sets need not be disjoint.

Entity Set in DBMS Example

For example, the entity sets employees (all employees of a bank), and the entity set customers (all bank customers) may have members (Entity) in common. An entity is described using a set of attributes. Therefore, all entities in a given entity set have the same attributes.

Formulas for GATE Computer Science Engineering – Discrete Mathematics

Entity Set in DBMS Types

The entity set in DBMS is classified into two types:

  • Weak entity set in DBMS
  • Strong entity set in DBMS

Weak Entity Set in DBMS

A weak entity set in DBMS does not possess sufficient attributes to form a primary key. Instead, it depends on another entity called a weak entity. It is represented using a double rectangle which is as follows:

weak

An example of a weak entity set in DBMS is as follows:

Weak

Dependents are an example of a weak entity set in DBMS. A weak entity in DBMS can be identified uniquely only by considering some of its attributes in conjunction with the primary key of another entity, which is called the identifying owner. In addition, the following restrictions must hold:

  1. The owner entity set and the weak entity set in DBMS must participate in a one-to-many relationship set (one owner entity is associated with one or more weak entities, but each weak entity has a single owner). This relationship set is called the identifying relationship set of the weak entity set in DBMS.
  2. The weak entity set in DBMS can have total participation in the identifying relationship set.

For example, a dependents entity can be identified uniquely only if we take the key of the owning Employees entity and the pname of the dependents entity. The set of attributes of the weak entity set in DBMS that uniquely identify a weak entity for a given owner entity is called a partial key of the weak entity set. In our example, pname is a partial key for dependents,

The dependent’s weak entity set and its relationship to employees are shown in the figure. The total participation of dependents in policy is indicated by linking them with a double line. The arrow from policy to dependents indicates that each dependents entity appears in at most one (indeed, exactly one, because of the participation constraint) policy relationship. We draw both with double lines to underscore that dependents are a weak entity and policy is its identifying relationship. We underline it using a broken line to indicate that pname is a partial key for dependents. This means that there may be two dependents with the same pname value.

Formulas for GATE Computer Science Engineering – Algorithms

Strong Entity Set in DBMS

A strong entity set in DBMS is an entity set that contains sufficient attributes to identify all its entities uniquely. In other words, a primary key exists for the strong entity set in DBMS. The primary key of the strong entity set in DBMS is represented by underlining it.

A strong entity set in DBMS possesses its primary key. It is represented using a single rectangle. A diamond represents the relationship between two strong entities. A set of strong entities in DBMS is known as a strong entity set in DBMS.

Example of a strong entity set in DBMS:

strong

Consider an organization as an example: a manager, a product, an employee, a department, and so on can all be considered separate entities.

Important Topics for Gate Exam
Composite Beams Compression Members
Concurrent Force System Conditions for Deadlock in Operating System
Conduction Heat Transfer Consensus Theorem
Constants in C Convection Heat Transfer
Coplanar Force System Cut Set Matrix
Our Apps Playstore
POPULAR EXAMS
SSC and Bank
Other Exams
GradeStack Learning Pvt. Ltd.Windsor IT Park, Tower - A, 2nd Floor, Sector 125, Noida, Uttar Pradesh 201303 help@byjusexamprep.com
Home Practice Test Series Premium