BeginnersBook

  • Home
  • Java
    • Java OOPs
    • Java Collections
    • Java Examples
  • C
    • C Examples
  • C++
    • C++ Examples
  • DBMS
  • Computer Network
  • Python
    • Python Examples
  • More…
    • jQuery
    • Kotlin
    • WordPress
    • SEO
    • JSON
    • JSP
    • JSTL
    • Servlet
    • MongoDB
    • XML
    • Perl

DBMS – Recursive Relationship in ER Diagrams

Last Updated: August 21, 2022 by Chaitanya Singh | Filed Under: DBMS

A relationship between two entities is called recursive relationship if the two entities are of similar type. For example: A relationship between a manager and an engineer is a recursive relationship because both manager and employee are employees of the company. Similarly a relationship “marries” between two person is recursive relationship as a person marries to another person, in this example the entity person is has a relationship with itself. In this guide, you will learn how to represent a recursive relationship in an ER diagram.

Recursive relationship in ER diagram

A recursive relationship can be represented in ER diagram as shown below. As you can see this relationship involves Employee entity twice. You can also call it as a relationship to itself. An employee supervises another employee.
ER diagram recursive relationship
Here an Employee supervises another employee. This is one to many relationship as one employee can supervise many employees.

Recursive relation ER diagram with a role name: In this ER diagram, we are depicting the supervises relationship with the role names. This clearly shows that a supervisor employee has a one to many relationship with the supervised employee.
Recursive relation ER diagram with a role name

Employees hierarchy:
Here we are displaying an employee hierarchy of 8 employees. This diagram shows us that, in this supervisor relationship, the total participation is optional as there are some employees that are not supervised by anyone such as “Chaitanya” and there are some employees, who do not supervise anyone such as Rahul, Jim, Steve, Carl & Ron.
Recursive relationship hierarchy

More examples of Recursive relationships

Some other example ER diagrams of recursive relationships:
ER diagram examples of recursive relationship

❮ ER DiagramDBMS tutorial ❯

Top Related Articles:

  1. Alternate key in DBMS
  2. DBMS – Three Level Architecture
  3. DBMS – ER Design Issues
  4. DBMS: SQL Commands DDL, DML, DCL, TCL, and DQL
  5. DBMS Generalization

About the Author

I have 15 years of experience in the IT industry, working with renowned multinational corporations. Additionally, I have dedicated over a decade to teaching, allowing me to refine my skills in delivering information in a simple and easily understandable manner.

– Chaitanya

DBMS Tutorial

Basics

  • DBMS Tutorial
  • DBMS Introduction
  • Database Applications
  • DBMS vs File System
  • DBMS vs RDBMS
  • DBMS Architecture
  • Three-level DBMS architecture
  • View in DBMS
  • Abstraction
  • Instance & Schema
  • DBMS languages

Data Models

  • Data Models
  • ER Diagram
  • ER Design issues
  • Convert ER to table
  • DBMS Generalization
  • DBMS Specialization
  • DBMS Aggregration
  • Relational Model
  • Hierarchical Model
  • Constraints
  • Cardinality

Relational Database

  • RDBMS concepts
  • Relational Algebra
  • Relational Calculus
  • Keys Index
  • Primary Key
  • Super Key
  • Candidate Key
  • Foreign Key
  • Composite Key
  • Alternate Key

Normalization

  • Normalization
  • Functional dependency

Transaction Management

  • Transaction Management
  • ACID properties
  • Transaction States
  • DBMS Schedules
  • Serializability
  • Conflict Serializability
  • View Serializability
  • Recoverability Of Schedule
  • Failure Classification
  • Log based Recovery
  • DBMS Checkpoint
  • Deadlock

Concurrency Control

  • Concurrency Control
  • Lock based protocol
  • Timestamp based protocol
  • Validation based protocol

File Organization

  • File Organization
  • Sequential File Organization
  • Heap File Organization
  • Hash File Organization
  • DBMS ISAM
  • B+ File Organization
  • Cluster File Organization

SQL Introduction

  • SQL Introduction
  • SQL Characteristics
  • Advantages of SQL
  • SQL Commands
  • SQL Operators
  • SQL CREATE
  • SQL DROP
  • SQL SELECT
  • SQL INSERT

Copyright © 2012 – 2025 BeginnersBook . Privacy Policy . Sitemap