Introduction of 4th and 5th Normal Form in DBMS - GeeksforGeeks
Introduction of 4th and 5th Normal Form in DBMS - GeeksforGeeks
Search...
Aptitude Engineering
Two of Mathematics
the highest Discrete
levels Mathematics normalization
of database Sign In
Operating System areDB the fourth
normal form (4NF) and the fifth normal form (5NF). Multivalued
dependencies are handled by 4NF, whereas join dependencies are
handled by 5NF.
Example:
Person->-> mobile,
Person ->-> food_likes
https://www.geeksforgeeks.org/introduction-of-4th-and-5th-normal-form-in-dbms/ 1/12
5/16/25, 9:58 AM Introduction of 4th and 5th Normal Form in DBMS | GeeksforGeeks
Properties
Example: Consider the database table of a class that has two relations
R1 contains student ID(SID) and student name (SNAME) and R2
contains course id(CID) and course name (CNAME).
Table R1
SID SNAME
S1 A
https://www.geeksforgeeks.org/introduction-of-4th-and-5th-normal-form-in-dbms/ 2/12
5/16/25, 9:58 AM Introduction of 4th and 5th Normal Form in DBMS | GeeksforGeeks
SID SNAME
S2 B
Table R2
CID CNAME
C1 C
C2 D
Table R1 X R2
S1 A C1 C
S1 A C2 D
S2 B C1 C
S2 B C2 D
Join Dependency
Join decomposition is a further generalization of Multivalued
dependencies. If the join of R1 and R2 over C is equal to relation R then
we can say that a join dependency (JD) exists, where R1 and R2 are the
decomposition R1(A, B, C) and R2(C, D) of a given relations R (A, B, C,
https://www.geeksforgeeks.org/introduction-of-4th-and-5th-normal-form-in-dbms/ 3/12
5/16/25, 9:58 AM Introduction of 4th and 5th Normal Form in DBMS | GeeksforGeeks
Joint Dependency
Example:
Table R1
Company Product
C1 Pendrive
C1 mic
C2 speaker
C2 speaker
Company->->Product
Table R2
Agent Company
Aman C1
Aman C2
Mohan C1
https://www.geeksforgeeks.org/introduction-of-4th-and-5th-normal-form-in-dbms/ 4/12
5/16/25, 9:58 AM Introduction of 4th and 5th Normal Form in DBMS | GeeksforGeeks
Agent->->Company
Table R3
Agent Product
Aman Pendrive
Aman Mic
Aman speaker
Mohan speaker
Agent->->Product
Table R1⋈R2⋈R3
C1 Pendrive Aman
C1 mic Aman
C2 speaker speaker
C1 speaker Aman
Agent->->Product
https://www.geeksforgeeks.org/introduction-of-4th-and-5th-normal-form-in-dbms/ 5/12
5/16/25, 9:58 AM Introduction of 4th and 5th Normal Form in DBMS | GeeksforGeeks
Properties
Table ACP
A1 PQR Nut
A1 PQR Bolt
A1 XYZ Nut
A1 XYZ Bolt
A2 PQR Nut
The relation ACP is again decomposed into 3 relations. Now, the natural
Join of all three relations will be shown as:
Table R1
Agent Company
A1 PQR
https://www.geeksforgeeks.org/introduction-of-4th-and-5th-normal-form-in-dbms/ 6/12
5/16/25, 9:58 AM Introduction of 4th and 5th Normal Form in DBMS | GeeksforGeeks
Agent Company
A1 XYZ
A2 PQR
Table R2
Agent Product
A1 Nut
A1 Bolt
A2 Nut
Table R3
Company Product
PQR Nut
PQR Bolt
XYZ Nut
XYZ Bolt
The result of the Natural Join of R1 and R3 over ‘Company’ and then the
Natural Join of R13 and R2 over ‘Agent’and ‘Product’ will be Table ACP.
Hence, in this example, all the redundancies are eliminated, and the
decomposition of ACP is a lossless join decomposition. Therefore, the
relation is in 5NF as it does not violate the property of lossless join.
Conclusion
https://www.geeksforgeeks.org/introduction-of-4th-and-5th-normal-form-in-dbms/ 7/12
5/16/25, 9:58 AM Introduction of 4th and 5th Normal Form in DBMS | GeeksforGeeks
Similar Reads
Introduction of Database Normalization
Normalization is an important process in database design that helps
improve the database's efficiency, consistency, and accuracy. It makes it…
https://www.geeksforgeeks.org/introduction-of-4th-and-5th-normal-form-in-dbms/ 8/12
5/16/25, 9:58 AM Introduction of 4th and 5th Normal Form in DBMS | GeeksforGeeks
15+ min read
https://www.geeksforgeeks.org/introduction-of-4th-and-5th-normal-form-in-dbms/ 9/12
5/16/25, 9:58 AM Introduction of 4th and 5th Normal Form in DBMS | GeeksforGeeks
Registered Address:
K 061, Tower K, Gulshan Vivante
Apartment, Sector 137, Noida, Gautam
Buddh Nagar, Uttar Pradesh, 201305
Advertise with us
Company Explore
About Us Job-A-Thon Hiring Challenge
Legal GfG Weekly Contest
Privacy Policy Offline Classroom Program
Careers DSA in JAVA/C++
In Media Master System Design
Contact Us Master CP
GfG Corporate Solution GeeksforGeeks Videos
Placement Training Program
Languages DSA
Python Data Structures
Java Algorithms
C++ DSA for Beginners
PHP Basic DSA Problems
GoLang DSA Roadmap
SQL DSA Interview Questions
R Language Competitive Programming
Android Tutorial
https://www.geeksforgeeks.org/introduction-of-4th-and-5th-normal-form-in-dbms/ 10/12
5/16/25, 9:58 AM Introduction of 4th and 5th Normal Form in DBMS | GeeksforGeeks
Pandas NextJS
NumPy NodeJs
NLP Bootstrap
Deep Learning Tailwind CSS
https://www.geeksforgeeks.org/introduction-of-4th-and-5th-normal-form-in-dbms/ 12/12