0% found this document useful (0 votes)
208 views2 pages

Fourth Normal Form (4NF) : Example

The document discusses the fourth normal form (4NF) in database normalization. A relation is in 4NF if it is in Boyce-Codd normal form and has no multi-valued dependencies. An example student table is given that is in 3NF but not 4NF due to a multi-valued dependency on student ID. To normalize it to 4NF, the table is decomposed into two tables - one for student courses and one for student hobbies - to remove the unnecessary data repetition.

Uploaded by

balu 1203
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
208 views2 pages

Fourth Normal Form (4NF) : Example

The document discusses the fourth normal form (4NF) in database normalization. A relation is in 4NF if it is in Boyce-Codd normal form and has no multi-valued dependencies. An example student table is given that is in 3NF but not 4NF due to a multi-valued dependency on student ID. To normalize it to 4NF, the table is decomposed into two tables - one for student courses and one for student hobbies - to remove the unnecessary data repetition.

Uploaded by

balu 1203
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

7/2/2021 DBMS 4NF - javatpoint

Fourth normal form (4NF)


A relation will be in 4NF if it is in Boyce Codd normal form and has no multi-valued
dependency.

For a dependency A → B, if for a single value of A, multiple values of B exists, then the relation
will be a multi-valued dependency.

Example

STUDENT

STU_ID COURSE HOBBY

21 Computer Dancing

21 Math Singing

34 Chemistry Dancing

74 Biology Cricket

59 Physics Hockey

The given STUDENT table is in 3NF, but the COURSE and HOBBY are two independent entity. Hence,
there is no relationship between COURSE and HOBBY.

In the STUDENT relation, a student with STU_ID, 21 contains two courses, Computer and Math and


two hobbies, Dancing and Singing. So there is a Multi-valued dependency on STU_ID, which leads
to unnecessary repetition of data.

So to make the above table into 4NF, we can decompose it into two tables:

STUDENT_COURSE

STU_ID COURSE

21 Computer

21 Math

34 Chemistry

74 Biology

59 Physics

https://www.javatpoint.com/dbms-forth-normal-form 1/2
7/2/2021 DBMS 4NF - javatpoint

STUDENT_HOBBY

STU_ID HOBBY

21 Dancing

21 Singing

34 Dancing

74 Cricket

59 Hockey

https://www.javatpoint.com/dbms-forth-normal-form 2/2

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy