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
Third Normal Form (3NF)

Third Normal Form (3NF)

Posted on July 28, 2025July 28, 2025 By Rishabh saini No Comments on Third Normal Form (3NF)

Third Normal Form (3NF)

Third Normal Form (3NF) is a crucial step in relational database design that guarantees minimal redundancy and data integrity. If a relation has no transitive dependencies and is already in Second Normal Form (2NF), it is said to be in 3NF. This form is essential for maintaining data consistency and cutting down on repetition.

Let’s explore what 3NF entails, how to achieve it, and why it matters.

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

What is Third Normal Form (3NF)?

A relation is in Third Normal Form if for every non-trivial functional dependency X → Y, at least one of the following conditions holds:

  1. X is a super key, or
  2. Y is a prime attribute—that is, an attribute that is part of some candidate key.

To put it simply, a non-prime attribute should not be transitively dependent on the primary key. When these rules are followed, we eliminate unnecessary redundancy and make the structure more robust.

Example: EMPLOYEE_DETAIL Table

Consider the following table:

EMP_IDEMP_NAMEEMP_ZIPEMP_STATEEMP_CITY
222Harry201010UPNoida
333Stephan02228USBoston
444Lan60007USChicago
555Katharine06389UKNorwich
666John462007MPBhopal

  • Candidate Key: {EMP_ID}
  • Super Keys: {EMP_ID}, {EMP_ID, EMP_NAME}, {EMP_ID, EMP_NAME, EMP_ZIP}, etc.
  • Non-prime Attributes: All except EMP_ID.

In this table, notice that EMP_STATE and EMP_CITY depend on EMP_ZIP, which in turn depends on EMP_ID. This transitive dependency violates the rules of 3NF, even though the table may be in 2NF.

Achieving 3NF

We divided the table into two sections in order to remove transitive dependencies:

EMPLOYEE Table:

EMP_IDEMP_NAMEEMP_ZIP
222Harry201010
333Stephan02228
444Lan60007
555Katharine06389
666John462007

EMPLOYEE_ZIP Table:

EMP_ZIPEMP_STATEEMP_CITY
201010UPNoida
02228USBoston
60007USChicago
06389UKNorwich
462007MPBhopal

There are no transitive dependencies left with this structure; all non-key attributes are directly dependent on the primary key. This satisfies 3NF and reduces redundancy.

Anomalies in 3NF

Even after achieving 3NF, certain anomalies might still occur—insertion, deletion, and update anomalies, especially when multivalued dependencies exist.

Let’s consider another example using the STAFF relation.

STAFF Relation

Initially, it’s represented as:

STAFF (@S_Name + @Equipment + @Language)

Here, @ indicates the primary key.

After converting it to 1NF for proper relational structure:

S_NameEquipmentLanguage
AnuragPCEnglish
AnuragPCFrench
AnuragMainframeEnglish
AnuragMainframeFrench
KapilPCEnglish
KapilPCFrench
KapilPCJapanese

In this format:

  • A combination of S_Name, Equipment, and Language makes up the primary key.
  • There are no transitive dependencies, hence the relation is in 3NF.
  • However, it still faces anomalies:

Insertion Anomaly:

If Anurag learns Japanese, new rows must be added for each equipment he uses. This causes unnecessary repetition.

Deletion Anomaly:

If Anurag’s PC is deallocated, deleting all entries related to that equipment may also remove information about languages he knows—resulting in data loss.

Update Anomaly:

Changing a staff name (e.g., from Anurag to Anuraj) requires multiple updates, increasing the risk of inconsistency.

These anomalies are the result of multivalued dependencies, not addressed by 3NF. The solution lies in progressing to the Fourth Normal Form (4NF), which we will cover in a future post.

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

Download New Real Time Projects :-Click here

Conclusion

A crucial stage in database normalisation is the Third Normal Form. It reduces redundancy and improves data integrity by eliminating transitive dependencies. However, it doesn’t eliminate all forms of anomalies—especially those arising from multivalued dependencies. Understanding the limitations of 3NF helps database designers prepare for more advanced normalization, such as 4NF.

For deeper normalization strategies and advanced database design, stay tuned to Updategadh.


third normal form in dbms
third normal form in dbms with example
1st, 2nd and 3rd normal form examples
boyce-codd normal form
bcnf in dbms
third normal form example answers
second normal form
4th normal form
third normal form 3nf in dbms
third normal form 3nf example
third normal form 3nf pdf

    Post Views: 361
    DBMS Tutorial Tags:3rd normal form, data third normal form, dbms - third normal form (3nf), relational database: what is third normal form (3nf)?, third normal form, third normal form (3nf), third normal form (3nf) database normalization dbms, third normal form database, third normal form dbms, third normal form example, third normal form in dbms, third normal form in dbms in hindi, third normal form in dbms with example, third normal form of database normalization, third normal form sql, third normal form-3nf

    Post navigation

    Previous Post: Bank Loan Prediction System using Streamlit
    Next Post: Bike Showroom Management System Python Django

    More Related Articles

    Failure Classification Failure Classification DBMS Tutorial
    Relational Decomposition Relational Decomposition DBMS Tutorial
    Three Schema Architecture DBMS Three Schema Architecture DBMS Tutorial

    Leave a Reply Cancel reply

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

    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. News Portal Project in PHP and MySql Free Source Code
    5. Flipkart Clone using 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

    Copyright © 2026 UpdateGadh.

    Powered by PressBook Green WordPress theme