MVD, 4NF, Join Dependency & 5NF in DBMS Explained With Simple Examples

DBMS Chapter 18 · Beyond BCNF Dependency Observatory
MVD, 4NF, Join Dependency & 5NF in DBMS Explained With Simple Examples

Multivalued Dependency (MVD), Fourth Normal Form (4NF), Join Dependency and Fifth Normal Form (5NF) are advanced normalization concepts used when redundancy remains even after BCNF. MVD appears when one attribute independently determines multiple values of another attribute. 4NF removes problematic non-trivial MVDs. Join Dependency explains when a relation can be reconstructed from several projections, and 5NF removes redundancy caused by join dependencies that cannot be solved properly by the lower normal forms. This chapter explains all four ideas from zero with simple examples.

MVD from zero 4NF step by step Join Dependency 5NF / PJNF Simple college examples Checked: 19 September 2026
Start with the big picture

What Comes After BCNF?

MVD, 4NF, Join Dependency & 5NF in DBMS Explained With Simple Examples
BCNFHandles problematic functional dependencies.
MVDDetects independent multi-valued facts.
4NFRemoves non-trivial MVDs with non-superkey determinants.
5NFHandles deeper join dependency problems.

Easy order to remember

FD -> BCNF · MVD -> 4NF · Join Dependency -> 5NF

If BCNF is not clear yet, revise BCNF in DBMS: 3NF vs BCNF. Also revise Lossless Join & Dependency Preservation in DBMS because 4NF and 5NF both use decomposition ideas.

Part 01 · multivalued dependency

What Is Multivalued Dependency (MVD)?

A multivalued dependency exists when one attribute determines a set of values of another attribute, and those values are independent of the remaining attributes. We will write it as X ->> Y.

Suppose one student can have many hobbies and can also know many languages. Hobbies and languages are independent of each other.

Student

Asha

independently determinestwo separate value sets

Hobbies + Languages

Hobbies: Chess, Music
Languages: Hindi, English

We can write:

Student ->> Hobby
Student ->> Language

The important word is independent. Asha's hobby does not decide which language she knows, and her language does not decide her hobby.

MVD memory line

One X value -> many Y values, independent of the rest
See the redundancy

Why Multivalued Dependency Creates Repetition

Consider this relation:

StudentHobbyLanguage
AshaChessHindi
AshaChessEnglish
AshaMusicHindi
AshaMusicEnglish

Asha has 2 hobbies and 2 languages. Because the two sets are independent, the table stores all 2 x 2 combinations. If she had 5 hobbies and 4 languages, the table might need 20 rows for one student.

This repetition is not caused by a normal functional dependency. It is caused by two independent multi-valued facts being stored together.

MVD vs FD

Functional Dependency vs Multivalued Dependency

Functional Dependency

X -> Y

One X value determines one Y value.

Example: Student_ID -> Student_Name.

Multivalued Dependency

X ->> Y

One X value determines a set of Y values that is independent of the remaining attributes.

Example: Student ->> Hobby.

Every functional dependency also implies a corresponding multivalued dependency, but not every multivalued dependency is a functional dependency.

For FD basics, revise Functional Dependency in DBMS.

Types of MVD

Trivial and Non-Trivial Multivalued Dependency

Trivial MVDX ->> Y is trivial if Y is a subset of X.
Also TrivialIt is trivial if X union Y gives all attributes of the relation.
Non-Trivial MVDY is not contained in X and X union Y does not cover the whole relation.

Example relation:

R(Student, Hobby, Language)

Student ->> Hobby is non-trivial because Hobby is not part of Student and Student plus Hobby does not contain Language.

Part 02 · fourth normal form

What Is 4NF in DBMS?

A relation is in Fourth Normal Form (4NF) if, for every non-trivial multivalued dependency X ->> Y, X is a superkey.

This is similar to BCNF, but BCNF checks functional dependencies while 4NF also handles multivalued dependencies.

4NF rule

Non-trivial X ->> Y ? Then X must be a superkey
Why the student table fails

Why Student-Hobby-Language Violates 4NF

We have:

Student ->> Hobby
Student ->> Language

Student is not a superkey of the relation R(Student, Hobby, Language) because one student appears in many rows.

Therefore the non-trivial MVDs violate 4NF.

Before 4NF

STUDENT_INFO(Student, Hobby, Language)

Independent facts are mixed together.

After 4NF

STUDENT_HOBBY(Student, Hobby)
STUDENT_LANGUAGE(Student, Language)

4NF decomposition

How to Convert a Relation to 4NF

Identify the relation and MVDsWrite all known multi-valued dependencies.
Find non-trivial MVDsIgnore trivial ones.
Check each determinantAsk whether the left side is a superkey.
Decompose using the violating MVDSeparate the independent multi-valued facts.
Recheck the smaller relationsMake sure no remaining non-trivial MVD violates 4NF.

For our example:

STUDENT_HOBBY(Student, Hobby)

STUDENT_LANGUAGE(Student, Language)

Now hobby facts and language facts are stored separately, so the cross-product repetition disappears.

Interactive concept lens

Explore MVD, 4NF, Join Dependency and 5NF

MVD: independent sets of values

Student ->> Hobby Student ->> Language Hobbies and languages vary independently.

What to remember

One determinant, many independent values MVD is the dependency problem that leads to 4NF.
4NF and BCNF

BCNF vs 4NF

PointBCNF4NF
Main dependencyFunctional DependencyMultivalued Dependency
RuleEvery non-trivial FD determinant is a superkeyEvery non-trivial MVD determinant is a superkey
Redundancy handledFD-based redundancyIndependent multi-valued facts
StrengthLower than 4NFStronger normal form

A relation can satisfy BCNF and still violate 4NF because MVD problems can exist even when there is no problematic functional dependency.

Part 03 · join dependency

What Is Join Dependency in DBMS?

A join dependency says that a relation can be reconstructed exactly by joining several of its projections. It is a more general dependency than multivalued dependency.

Suppose relation R has attribute groups R1, R2 and R3. A join dependency can be written conceptually as:

JD *(R1, R2, R3)

It means the original relation R should be exactly equal to the natural join of those projections:

R = R1 JOIN R2 JOIN R3

If the join reconstructs R without adding false tuples, the join dependency holds.

Join Dependency memory line

Project into smaller relations -> join them -> get exactly R
MVD is a special case

Relationship Between MVD and Join Dependency

Multivalued dependency can be viewed as a special case of join dependency involving a decomposition into two relation projections.

Join dependency is more general because it can involve three or more projections at the same time.

MVD

Commonly leads to a two-way decomposition.

Handled by 4NF.

Join Dependency

Can require three or more projections.

Handled by 5NF.

Part 04 · fifth normal form

What Is 5NF in DBMS?

Fifth Normal Form (5NF), also called Project-Join Normal Form (PJNF), is reached when every non-trivial join dependency is implied by candidate keys.

In simple words, a relation is in 5NF when it cannot be decomposed into smaller relations and then safely reconstructed only because of a non-key join dependency that still creates redundancy.

5NF memory line

No unnecessary redundancy caused by non-key join dependencies
Classic 5NF example

Supplier-Part-Project Example

Consider:

SPJ(Supplier, Part, Project)

Suppose a business rule says that valid triples are determined by pairwise relationships:

SP(Supplier, Part)
SJ(Supplier, Project)
PJ(Part, Project)

If every valid Supplier-Part-Project triple can be reconstructed exactly by joining these three pairwise relations, then SPJ has a join dependency.

RelationMeaning
SPWhich supplier can supply which part
SJWhich supplier works on which project
PJWhich part is used in which project

If the original three-attribute relation stores only facts that can be derived from these three pairwise relations, keeping the big relation can create repeated combinations. Decomposing into SP, SJ and PJ can remove that redundancy.

Why 5NF is harder

Why 5NF Problems Are Different From 4NF Problems

4NF problem

Usually two independent sets of multi-valued facts are mixed in one table.

Example: Student-Hobby-Language.

5NF problem

Redundancy appears because a three-way or higher join dependency exists even though lower normal forms may already be satisfied.

Example: Supplier-Part-Project.

How to recognize 5NF

When Should You Think About 5NF?

Three-way relationshipsThe table represents a relationship among three or more entities.
Pairwise facts existSome information can be stored in smaller pairwise relations.
Join recreates the originalSmaller projections can reconstruct the original relation exactly.
No simple FD problemBCNF may already be satisfied.
No ordinary MVD problem4NF may already be satisfied.
Rare in practice5NF usually appears in specialized complex relationship models.
4NF vs 5NF

Difference Between 4NF and 5NF

Point4NF5NF
Dependency typeMultivalued DependencyJoin Dependency
Main issueIndependent multiple valuesRedundancy caused by multi-relation join structure
Typical decompositionOften two relationsOften three or more relations
ExampleStudent-Hobby-LanguageSupplier-Part-Project
Normal form strengthStronger than BCNFStronger than 4NF
One clean hierarchy

1NF to 5NF: What Each Normal Form Removes

1NFRepeating groups and non-atomic values.
2NFPartial dependency on part of a composite key.
3NFProblematic transitive dependency.
BCNFNon-superkey determinants in functional dependencies.
4NFProblematic non-trivial multivalued dependencies.
5NFProblematic non-trivial join dependencies.

For the lower forms, revise Normalization in DBMS: 1NF, 2NF & 3NF.

Solved 4NF question

Solved Example: Convert a Relation to 4NF

Given:

R(Student, Hobby, Language)

MVDs:
Student ->> Hobby
Student ->> Language

Step 1: Check whether the MVDs are non-trivial

Yes. Hobby and Language are separate attributes and neither MVD covers the whole relation with Student.

Step 2: Is Student a superkey?

No. One student can appear in many hobby-language combinations.

Step 3: 4NF verdict

The relation violates 4NF.

Step 4: Decompose

R1(Student, Hobby)
R2(Student, Language)

The independent multi-valued facts are now separated.

Solved 5NF concept question

Solved Example: Why a Supplier-Part-Project Relation May Need 5NF

Suppose:

R(Supplier, Part, Project)

and valid triples are completely determined by these pairwise relations:

SP(Supplier, Part)
SJ(Supplier, Project)
PJ(Part, Project)

If:

R = SP JOIN SJ JOIN PJ

and the join produces exactly the valid original triples, then the join dependency holds.

If that non-trivial join dependency is not explained merely by a candidate key, the large relation violates 5NF and can be decomposed into the three smaller pairwise relations.

Important safety check

Lossless Decomposition Still Matters in 4NF and 5NF

Higher normal forms do not mean “split the table as much as possible.” The decomposition should still be lossless.

For 4NF, the standard decomposition using a violating MVD is designed to preserve the original relation through a lossless join.

For 5NF, the join dependency itself describes the projections whose natural join reconstructs the relation.

For the full idea, revise Lossless Join & Dependency Preservation in DBMS.

Common student mistakes

Mistakes to Avoid

Confusing MVD with FDFD gives one determined value; MVD gives an independent set of values.
Using MVD notation for ordinary FDKeep -> and ->> conceptually separate.
Forgetting independenceMultiple values alone do not automatically prove an MVD; the value sets must be independent in the modeled rule.
Thinking BCNF automatically means 4NFA BCNF relation can still have a problematic MVD.
Thinking every join is a join dependencyA JD is a rule that the original relation is exactly reconstructed from specific projections.
Confusing 4NF and 5NF4NF targets MVD; 5NF targets more general join dependency.
Trying 5NF on simple tables5NF is mainly useful for complex three-way or higher relationships.
Ignoring lossless reconstructionEvery useful decomposition must preserve the original valid information.
Write according to marks

How to Write MVD, 4NF, JD and 5NF in Semester Exams

2 marks

Definition answer

Define MVD or 4NF directly and write one notation-based example.

5 marks

Rule + example

Explain the normal-form rule, show the violating dependency and write the decomposed relations.

8-10 marks

Full comparison

Explain MVD, 4NF, join dependency, 5NF, differences, one 4NF decomposition and one Supplier-Part-Project example.

For presentation, revise How to Write High-Scoring Answers in University Semester Exams.

Practice questions

Practice Questions With Answers

1. What is a multivalued dependency?

A multivalued dependency exists when one attribute set determines an independent set of values of another attribute set. It can be written as X ->> Y.

2. What is the difference between FD and MVD?

An FD gives one determined value for a determinant, while an MVD gives an independent set of values.

3. What is 4NF?

A relation is in 4NF if every non-trivial multivalued dependency has a superkey on the left side.

4. Can a relation be in BCNF but not in 4NF?

Yes. BCNF handles functional dependencies, so a relation can satisfy BCNF and still have a problematic multivalued dependency.

5. What is a join dependency?

A join dependency states that a relation can be reconstructed exactly by joining specified projections of that relation.

6. What is 5NF?

5NF, or Project-Join Normal Form, requires every non-trivial join dependency to be implied by candidate keys.

7. What is the difference between 4NF and 5NF?

4NF handles multivalued dependencies, while 5NF handles more general join dependencies.

8. Is every MVD a join dependency?

An MVD can be represented as a special case of join dependency involving a two-way decomposition.

9. Why is 5NF rare?

Most database redundancy is already handled by lower normal forms. 5NF mainly appears in more complex many-to-many-to-many relationship structures.

10. What comes after 5NF?

In most DBMS courses, 5NF is the final commonly taught normal form. Some advanced texts also discuss Domain-Key Normal Form.

60-second revision

One-Minute Revision Sheet

MVDOne determinant gives an independent set of values.
NotationX ->> Y.
4NFEvery non-trivial MVD determinant must be a superkey.
4NF exampleStudent-Hobby-Language.
Join DependencyA relation equals the join of specified projections.
5NFEvery non-trivial JD is implied by candidate keys.
5NF nameProject-Join Normal Form.
5NF exampleSupplier-Part-Project.
MVD vs JDMVD is a special case; JD is more general.
HierarchyBCNF -> 4NF -> 5NF.

Ultimate memory line

Independent many-values? Think MVD and 4NF. Complex join rule? Think JD and 5NF.
Frequently asked questions

Frequently Asked Questions

What is MVD in DBMS in simple words?

MVD means one attribute determines multiple independent values of another attribute. For example, one student can independently have many hobbies and know many languages.

What is the rule of 4NF?

For every non-trivial multivalued dependency X ->> Y, X must be a superkey.

What is join dependency in DBMS?

Join dependency means a relation can be reconstructed exactly by naturally joining specified projections of that relation.

What is 5NF in DBMS?

5NF, also called Project-Join Normal Form, requires every non-trivial join dependency to be implied by candidate keys.

What is the difference between 4NF and 5NF?

4NF removes redundancy caused by multivalued dependencies, while 5NF handles more general redundancy caused by join dependencies.

Can a table be in BCNF but not in 4NF?

Yes. BCNF checks functional dependencies, while 4NF also checks non-trivial multivalued dependencies.

Next chapter

What Should You Learn Next?

Tags

Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.
Join Telegram Exam updates and free resources