Skip to content
  • SiteMap
  • Our Services
  • Frequently Asked Questions (FAQ)
  • Support
  • About Us

UpdateGadh

Update Your Skills.

  • Home
  • Projects
    •  Blockchain projects
    • Python Project
    • Data Science
    •  Ai projects
    • Machine Learning
    • PHP Project
    • React Projects
    • Java Project
    • SpringBoot
    • JSP Projects
    • Java Script Projects
    • Code Snippet
    • Free Projects
  • Tutorials
    • Ai
    • Machine Learning
    • Advance Python
    • Advance SQL
    • DBMS Tutorial
    • Data Analyst
    • Deep Learning Tutorial
    • Data Science
    • Nodejs Tutorial
  • Blog
  • Contact us
  • Toggle search form
Fifth Normal Form (5NF) in DBMS

Fifth Normal Form (5NF) in DBMS

Posted on August 3, 2025August 3, 2025 By Rishabh saini No Comments on Fifth Normal Form (5NF) in DBMS

Fifth Normal Form (5NF)

In the world of relational database design, normalization plays a crucial role in reducing data redundancy and ensuring data integrity. The Fifth Normal Form (5NF), sometimes referred to as Project-Join Normal Form (PJ/NF), is one of the more complex normalisation stages. It is a refinement over the Fourth Normal Form (4NF) and focuses specifically on eliminating join dependencies while maintaining lossless decomposition.

What is 5NF?

Fifth Normal Form is applied to a relationship if:

  1. It is already in 4NF.
  2. It contains no non-trivial join dependencies.
  3. All joins are lossless, meaning they preserve the original data when decomposed and recombined.

To put it another way, 5NF makes sure that a complex connection can be divided into smaller relations without introducing redundancy or losing data.The decomposition must be such that no meaningful join dependency remains, except the trivial ones or those that are implied by candidate keys.

Machine Learning Tutorial:–Click Here
Data Science Tutorial:-Click Here
Complete Advance AI topics:- CLICK HERE
Deep Learning Tutorial:- Click Here

Understanding Key Concepts

Join Dependency (JD)

A join dependency occurs when a relation can be reconstructed by joining multiple projections (subsets of attributes) of itself. A JD is trivial if one of the projections is the entire relation itself.

Lossless Decomposition

A lossless decomposition is one where no data is lost during the process of splitting a relation into smaller ones. When these relations are joined back together, they should reproduce the original relation without any additional or missing tuples.

Example 1: Fact_Comp_Proj Relation

Consider a relation Fact_Comp_Proj:

FactoryComponentProject
GMEngineMPC
GMGear box125 A
HondaEngine125 A
GMEngine125 A

Due to the absence of multivalued dependencies, this relation is in 4NF. It can be broken down into the three sub-relations shown below:

R1 (Factory, Component):

FactoryComponent
GMEngine
GMGear box
HondaEngine

R2 (Component, Project):

ComponentProject
EngineMPC
Gear box125 A
Engine125 A

R3 (Factory, Project):

FactoryProject
GMMPC
GM125 A
Honda125 A

These relations, when joined, recreate the original relation. Hence, a join dependency exists. However, not all sub-relations include a candidate key. For instance, R1 lacks the Project attribute. Therefore, Fact_Comp_Proj is not in 5NF, though R1, R2, and R3 are each in 5NF.

Now, if we add the tuple (Honda, Gear box, MPC), it breaks the existing join dependency, making Fact_Comp_Proj eligible for 5NF.

Example 2: RANKING Relation

Consider the following relation:

Factory#Fact_namePositionCity
F01Volvo17Mumbai
F11Honda22Chennai
F15Maruti26Gurgaon
F25GM37Chandigarh

This relation has two candidate keys: Factory# and Fact_name. It satisfies two join dependencies:

  • JD1 → ((Factory#, Fact_name, Position), (Factory#, City))
  • JD2 → ((Factory#, Fact_name, Position), (Factory#, Position), (Fact_name, City))

Since each component relation involved in these dependencies contains a candidate key, the original relation is in 5NF.

Example 3: SUBJECT–LECTURER–SEMESTER Relation

SubjectLecturerSemester
ComputerAnshikaSemester 1
ComputerJohnSemester 1
MathJohnSemester 1
MathAkashSemester 2
ChemistryPraveenSemester 1

This relation might seem fine at first, but issues arise when new semesters are introduced without information on subjects or lecturers. Since all three attributes form the primary key, NULLs are not allowed. To resolve this, we decompose it into the following:

P1 (Semester, Subject):

SemesterSubject
Semester 1Computer
Semester 1Math
Semester 1Chemistry
Semester 2Math

P2 (Subject, Lecturer):

SubjectLecturer
ComputerAnshika
ComputerJohn
MathJohn
MathAkash
ChemistryPraveen

P3 (Semester, Lecturer):

SemesterLecturer
Semester 1Anshika
Semester 1John
Semester 2Akash
Semester 1Praveen

This decomposition removes redundancy and brings the relation into 5NF.

Important Points on 5NF

  • Join dependencies that are not suggested by candidate keys are removed by 5NF.
  • All 5NF relationships are also in 4NF, but not the other way around.
  • 5NF is especially useful in handling cyclic join dependencies involving more than two tables.
  • Testing 5NF typically requires checking for hidden join dependencies by decomposing into three or more relations.

Disadvantages of 5NF

While 5NF offers optimal data integrity and minimal redundancy, it comes with a cost:

  • Increased complexity due to a higher number of tables.
  • Slower query performance, especially in join-intensive operations.
  • Maintenance overhead for managing highly decomposed structures.

Complete Python Course with Advance topics:-Click Here
SQL Tutorial :-Click Here

Download New Real Time Projects :–Click here

Conclusion

5NF is a powerful but advanced concept in database normalization. It is essential when designing databases that require maximum integrity and minimum redundancy, especially in large-scale systems with complex data relationships. However, its practical application should be balanced against performance and design complexity.


5nf in dbms
fifth normal form example
fifth normal form is concerned with
join dependency and 5nf in dbms
6th normal form
join dependency in dbms
4th normal form in dbms
fourth normal form
fifth normal form 5nf pdf
fifth normal form 5nf example
fifth normal form 5nf dbms
fifth normal form 5nf dbms example

    Post Views: 359
    DBMS Tutorial Tags:1st normal form, 5th normal form, dbms - fifth normal form (5nf), fifth normal, fifth normal form, fifth normal form (5nf), fifth normal form 5nf in database systems in hindi and urdu., fifth normal form dbms, fifth normal form definition, fifth normal form in dbms, fifth normal form meaning, fifth normal form pronunciation, fifth normal form tutorial, first normal form, fourth normal form, join dependency in fifth normal form, normal form, re-join the decomposed tables in fifth normal form, third normal form

    Post navigation

    Previous Post: AI-Powered Cold Mail Generator
    Next Post: Real-Time Life Expectancy Prediction Using Deep Learning

    More Related Articles

    Reduction of ER Diagram to Table Reduction of ER Diagram to Table DBMS Tutorial
    Boyce-Codd Normal Form (BCNF) Boyce-Codd Normal Form (BCNF) DBMS Tutorial
    Languages in DBMS Database Languages in DBMS DBMS Tutorial

    Leave a Reply Cancel reply

    Your email address will not be published. Required fields are marked *

    You may also like

    1. What is a Database? Definition, Types, Examples
    2. Difference Between DBMS and RDBMS
    3. ER Design Issues
    4. DBMS Specialization
    5. Relational Model in DBMS
    6. Relational Calculus

    Most Viewed Posts

    1. Top Large Language Models in 2025
    2. Online Shopping System using PHP, MySQL with Free Source Code
    3. login form in php and mysql , Step-by-Step with Free Source Code
    4. Flipkart Clone using PHP And MYSQL Free Source Code
    5. News Portal Project in PHP and MySql Free Source Code
    6. User Login & Registration System Using PHP and MySQL Free Code
    7. Top 10 Final Year Project Ideas in Python
    8. Online Bike Rental Management System Using PHP and MySQL
    9. E learning Website in php with Free source code
    10. E-Commerce Website Project in Java Servlets (JSP)
    • AI
    • ASP.NET
    • Blockchain
    • ChatCPT
    • code Snippets
    • Collage Projects
    • Data Science Project
    • Data Science Tutorial
    • DBMS Tutorial
    • Deep Learning Tutorial
    • Final Year Projects
    • Free Projects
    • How to
    • html
    • Interview Question
    • Java Notes
    • Java Project
    • Java Script Notes
    • JAVASCRIPT
    • Javascript Project
    • JSP JAVA(J2EE)
    • Machine Learning Project
    • Machine Learning Tutorial
    • MySQL Tutorial
    • Node.js Tutorial
    • PHP Project
    • Portfolio
    • Python
    • Python Interview Question
    • Python Projects
    • PythonFreeProject
    • React Free Project
    • React Projects
    • Spring boot
    • SQL Tutorial
    • TOP 10
    • Uncategorized
    • Online Examination System in PHP with Source Code
    • AI Chatbot for College and Hospital
    • Job Portal Web Application in PHP MySQL
    • Online Tutorial Portal Site in PHP MySQL — Full Project with Source Code
    • Online Job Portal System in JSP Servlet MySQL

    Most Viewed Posts

    • Top Large Language Models in 2025 (8,613)
    • Online Shopping System using PHP, MySQL with Free Source Code (5,211)
    • login form in php and mysql , Step-by-Step with Free Source Code (4,866)

    Copyright © 2026 UpdateGadh.

    Powered by PressBook Green WordPress theme