Fifth Normal Form (5NF) : Example
Fifth Normal Form (5NF) : Example
5NF is satisfied when all the tables are broken into as many tables as possible in order to
avoid redundancy.
Example
In the above table, John takes both Computer and Math class for Semester 1 but he doesn't take
Math class for Semester 2. In this case, combination of all these fields required to identify a valid
data.
Suppose we add a new Semester as Semester 3 but do not know about the subject and who will be
taking that subject so we leave Lecturer and Subject as NULL. But all three columns together acts as
a primary key, so we can't leave other two columns blank.
So to make the above table into 5NF, we can decompose it into three relations P1, P2 & P3:
P1
SEMESTER SUBJECT
Semester 1 Computer
Semester 1 Math
Semester 1 Chemistry
Semester 2 Math
https://www.javatpoint.com/dbms-fifth-normal-form 1/2
7/2/2021 DBMS 5NF - javatpoint
P2
SUBJECT LECTURER
Computer Anshika
Computer John
Math John
Math Akash
Chemistry Praveen
P3
SEMSTER LECTURER
Semester 1 Anshika
Semester 1 John
Semester 1 John
Semester 2 Akash
Semester 1 Praveen
https://www.javatpoint.com/dbms-fifth-normal-form 2/2