SlideShare a Scribd company logo
Normalisation
Normalisation Normalisation is a process by which data structures in a relational database are as efficient as possible, including the elimination of redundancy, the minimisation of the use of null values and the prevention of the loss of information.
Aims of Normalisation Normalisation ensures that the database is structured in the best possible way. To achieve control over data redundancy. There should be no unnecessary duplication of data in different tables. To ensure data consistency. Where duplication is necessary the data is the same. To ensure tables have a flexible structure. E.g. number of classes taken or books borrowed should not be limited. To allow data in different tables can be used in complex queries.
Duplication vs Redundant Data Duplicated Data: When an attribute has two or more identical values Redundant Data: If you can delete data with a loss of information
Stages of Normalisation First Normal Form (1NF) Second Normal Form (2NF) Third Normal Form (3NF) Boyce-Codd Normal Form (BCNF) Fourth Normal Form (4NF) Fifth Normal Form (5NF)
 
First Normal Form A table is in its first normal form if it contains no repeating attributes or groups of attributes
Non-Normalised Table STUDENT
First Normal Form To convert data for unnormalised form to 1NF, simply convert any repeated attributes into part of the candidate key STUDENT( Number , Name, Classes) STUDENT( Number , Name,  Classes )
First Normal Form STUDENT
Over to you...
Second Normal Form A table is in the second normal form if it's in the first normal form AND no column that is not part of the primary key is dependant only a portion of the primary key
Second Normal Form The concept of functional dependency in central to normalisation and, in particular, strongly related to 2NF.
Functional Dependency If ‘X’ is a set of attributes within a relation, then we say ‘A’ (an attribute or set of attributes), is functionally dependant on X, if and only if, for every combination of X, there is only one corresponding value of A We write this as : X -> A
Table in 1NF
Functional Dependency It is clear that : RefNo -> Name, Address, Status or, most correctly,  AccNo, RefNo -> Name, Address, Status
Second Normal Form
Over to you...
Table in Second Normal Form
Third Normal Form A table is in the third normal form if it is the second normal form and there are no  non-key columns  dependant on  other non-key columns  that could not act as the primary key.
Table in Second Normal Form
Table in Third Normal Form
Boyce-Codd Normal Form All attributes in a relation should be dependant upon the key, the whole key and nothing but the key
Important Papers E.F.Codd ‘ A Relational Model for Large Shared Data Banks’  CACM 13(6) June 1970  E.F. Codd ‘ Extending the Database Relational Model to Capture More Meaning’  ACM Transactions on Database Systems, 4(4), December 1979
Table in Third Normal Form
Redundancy in 3NF The combination of ROOM, TIME is unique to each tuple, no room is used twice at the same time (thus it is in 3NF). But, we know there is a redundancy in that ROOM depends LECTURER, therefore, we split the table...
Tables in BCNF
Difference between BCNF and 3NF Most relations in 3NF are also in BCNF, the only time this may not be true is when there is more than one candidate key for a relation and at least one of  is composite.
Fourth  Normal Form Fourth normal form (or 4NF) requires that there be no non-trivial multivalued dependencies of attribute sets on something other than a superset of a candidate key. A table is said to be in 4NF if and only if it is in the BCNF and multivalued dependencies are functional dependencies. The 4NF removes unwanted data structures: multivalued dependencies.
Fifth  Normal Form Fifth normal form (5NF and also PJ/NF) requires that there are no non-trivial join dependencies that do not follow from the key constraints. A table is said to be in the 5NF if and only if it is in 4NF and every join dependency in it is implied by the candidate keys.
Domain/Key Normal  Form Domain/key normal form (or DKNF) requires that the database contains no constraints other than domain constraints and key constraints.

More Related Content

What's hot (20)

PPTX
Normalization in DBMS
Prateek Parimal
 
PDF
Normalization in DBMS
Hitesh Mohapatra
 
PPTX
joins in database
Sultan Arshad
 
PDF
Normalization | (1NF) |(2NF) (3NF)|BCNF| 4NF |5NF
Biplap Bhattarai
 
PPT
Entity Relationship Diagram
Shakila Mahjabin
 
PDF
Database Normalization
Arun Sharma
 
ODP
ER Model in DBMS
Kabindra Koirala
 
PPTX
Normalization in a Database
Bishrul Haq
 
PPTX
The Relational Database Model
Shishir Aryal
 
PPT
ER-Model-ER Diagram
Saranya Natarajan
 
PPTX
Dbms normalization
Pratik Devmurari
 
PPTX
Relational model
Dabbal Singh Mahara
 
PPTX
serializability in dbms
Saranya Natarajan
 
PPTX
Types Of Keys in DBMS
PadamNepal1
 
PPT
Data independence
Aashima Wadhwa
 
PPTX
Transaction management DBMS
Megha Patel
 
PPTX
introdution to SQL and SQL functions
farwa waqar
 
PDF
Integrity constraints in dbms
Vignesh Saravanan
 
PDF
Enhanced Entity-Relationship (EER) Modeling
sontumax
 
Normalization in DBMS
Prateek Parimal
 
Normalization in DBMS
Hitesh Mohapatra
 
joins in database
Sultan Arshad
 
Normalization | (1NF) |(2NF) (3NF)|BCNF| 4NF |5NF
Biplap Bhattarai
 
Entity Relationship Diagram
Shakila Mahjabin
 
Database Normalization
Arun Sharma
 
ER Model in DBMS
Kabindra Koirala
 
Normalization in a Database
Bishrul Haq
 
The Relational Database Model
Shishir Aryal
 
ER-Model-ER Diagram
Saranya Natarajan
 
Dbms normalization
Pratik Devmurari
 
Relational model
Dabbal Singh Mahara
 
serializability in dbms
Saranya Natarajan
 
Types Of Keys in DBMS
PadamNepal1
 
Data independence
Aashima Wadhwa
 
Transaction management DBMS
Megha Patel
 
introdution to SQL and SQL functions
farwa waqar
 
Integrity constraints in dbms
Vignesh Saravanan
 
Enhanced Entity-Relationship (EER) Modeling
sontumax
 

Similar to Databases: Normalisation (20)

PDF
Dependencies in various topics like normalisation and its types
nsrChowdary1
 
PPTX
Database normalization
Vaibhav Kathuria
 
PPT
Normalization
Altafsoomro
 
PPT
b - Normalizing a Data Model
Dimara Hakim
 
PDF
Assignment#11
Sunita Milind Dol
 
DOCX
Research gadot
Jotham Gadot
 
PDF
Relational Theory for Budding Einsteins -- LonestarPHP 2016
Dave Stokes
 
PPT
a - Normalizing a Data Model
Dimara Hakim
 
PPTX
Chapter Four Logical Database Design (Normalization).pptx
haymanot taddesse
 
PPTX
Ism normalization pine valley 2012
Akshit R Shah
 
PDF
Normalization work as through a series of stages called normal forms .pdf
deepaarora22
 
DOCX
Normalization in relational database management systems
Preethi T G
 
PPTX
Functional dependencies and normalization
daxesh chauhan
 
PPTX
Dbms 4NF & 5NF
Soham Kansodaria
 
PDF
functionaldependenciesandnormalization-150628061940-lva1-app6891.pdf
Anvesha Joshi
 
PPTX
DBMS_UNIT_IV.pptxbdndjdkdjdndjkdkdkdkdkdkdk
KGowtham16
 
PPTX
Relational Database Design
Archit Saxena
 
PPTX
Database normalization
Jignesh Jain
 
PPTX
Database Normalization.pptx
Green University of Bangladesh
 
PDF
Normalization in Database
A. S. M. Shafi
 
Dependencies in various topics like normalisation and its types
nsrChowdary1
 
Database normalization
Vaibhav Kathuria
 
Normalization
Altafsoomro
 
b - Normalizing a Data Model
Dimara Hakim
 
Assignment#11
Sunita Milind Dol
 
Research gadot
Jotham Gadot
 
Relational Theory for Budding Einsteins -- LonestarPHP 2016
Dave Stokes
 
a - Normalizing a Data Model
Dimara Hakim
 
Chapter Four Logical Database Design (Normalization).pptx
haymanot taddesse
 
Ism normalization pine valley 2012
Akshit R Shah
 
Normalization work as through a series of stages called normal forms .pdf
deepaarora22
 
Normalization in relational database management systems
Preethi T G
 
Functional dependencies and normalization
daxesh chauhan
 
Dbms 4NF & 5NF
Soham Kansodaria
 
functionaldependenciesandnormalization-150628061940-lva1-app6891.pdf
Anvesha Joshi
 
DBMS_UNIT_IV.pptxbdndjdkdjdndjkdkdkdkdkdkdk
KGowtham16
 
Relational Database Design
Archit Saxena
 
Database normalization
Jignesh Jain
 
Database Normalization.pptx
Green University of Bangladesh
 
Normalization in Database
A. S. M. Shafi
 
Ad

More from Damian T. Gordon (20)

PPTX
Introduction to Prompts and Prompt Engineering
Damian T. Gordon
 
PPTX
Introduction to Vibe Coding and Vibe Engineering
Damian T. Gordon
 
PPTX
TRIZ: Theory of Inventive Problem Solving
Damian T. Gordon
 
PPTX
Some Ethical Considerations of AI and GenAI
Damian T. Gordon
 
PPTX
Some Common Errors that Generative AI Produces
Damian T. Gordon
 
PPTX
The Use of Data and Datasets in Data Science
Damian T. Gordon
 
PPTX
A History of Different Versions of Microsoft Windows
Damian T. Gordon
 
PPTX
Writing an Abstract: A Question-based Approach
Damian T. Gordon
 
PPTX
Using GenAI for Universal Design for Learning
Damian T. Gordon
 
DOC
A CheckSheet for Inclusive Software Design
Damian T. Gordon
 
PPTX
A History of Versions of the Apple MacOS
Damian T. Gordon
 
PPTX
68 Ways that Data Science and AI can help address the UN Sustainability Goals
Damian T. Gordon
 
PPTX
Copyright and Creative Commons Considerations
Damian T. Gordon
 
PPTX
Exam Preparation: Some Ideas and Suggestions
Damian T. Gordon
 
PPTX
Studying and Notetaking: Some Suggestions
Damian T. Gordon
 
PPTX
The Growth Mindset: Explanations and Activities
Damian T. Gordon
 
PPTX
Hyperparameter Tuning in Neural Networks
Damian T. Gordon
 
PPTX
Early 20th Century Modern Art: Movements and Artists
Damian T. Gordon
 
PPTX
An Introduction to Generative Artificial Intelligence
Damian T. Gordon
 
PPTX
An Introduction to Green Computing with a fun quiz.
Damian T. Gordon
 
Introduction to Prompts and Prompt Engineering
Damian T. Gordon
 
Introduction to Vibe Coding and Vibe Engineering
Damian T. Gordon
 
TRIZ: Theory of Inventive Problem Solving
Damian T. Gordon
 
Some Ethical Considerations of AI and GenAI
Damian T. Gordon
 
Some Common Errors that Generative AI Produces
Damian T. Gordon
 
The Use of Data and Datasets in Data Science
Damian T. Gordon
 
A History of Different Versions of Microsoft Windows
Damian T. Gordon
 
Writing an Abstract: A Question-based Approach
Damian T. Gordon
 
Using GenAI for Universal Design for Learning
Damian T. Gordon
 
A CheckSheet for Inclusive Software Design
Damian T. Gordon
 
A History of Versions of the Apple MacOS
Damian T. Gordon
 
68 Ways that Data Science and AI can help address the UN Sustainability Goals
Damian T. Gordon
 
Copyright and Creative Commons Considerations
Damian T. Gordon
 
Exam Preparation: Some Ideas and Suggestions
Damian T. Gordon
 
Studying and Notetaking: Some Suggestions
Damian T. Gordon
 
The Growth Mindset: Explanations and Activities
Damian T. Gordon
 
Hyperparameter Tuning in Neural Networks
Damian T. Gordon
 
Early 20th Century Modern Art: Movements and Artists
Damian T. Gordon
 
An Introduction to Generative Artificial Intelligence
Damian T. Gordon
 
An Introduction to Green Computing with a fun quiz.
Damian T. Gordon
 
Ad

Recently uploaded (20)

PPTX
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
PDF
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PDF
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
PPTX
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
PDF
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PDF
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PPT
Ericsson LTE presentation SEMINAR 2010.ppt
npat3
 
PDF
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
PDF
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
PDF
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
PDF
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
PDF
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
PPTX
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
PDF
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
Ericsson LTE presentation SEMINAR 2010.ppt
npat3
 
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 

Databases: Normalisation

  • 2. Normalisation Normalisation is a process by which data structures in a relational database are as efficient as possible, including the elimination of redundancy, the minimisation of the use of null values and the prevention of the loss of information.
  • 3. Aims of Normalisation Normalisation ensures that the database is structured in the best possible way. To achieve control over data redundancy. There should be no unnecessary duplication of data in different tables. To ensure data consistency. Where duplication is necessary the data is the same. To ensure tables have a flexible structure. E.g. number of classes taken or books borrowed should not be limited. To allow data in different tables can be used in complex queries.
  • 4. Duplication vs Redundant Data Duplicated Data: When an attribute has two or more identical values Redundant Data: If you can delete data with a loss of information
  • 5. Stages of Normalisation First Normal Form (1NF) Second Normal Form (2NF) Third Normal Form (3NF) Boyce-Codd Normal Form (BCNF) Fourth Normal Form (4NF) Fifth Normal Form (5NF)
  • 6.  
  • 7. First Normal Form A table is in its first normal form if it contains no repeating attributes or groups of attributes
  • 9. First Normal Form To convert data for unnormalised form to 1NF, simply convert any repeated attributes into part of the candidate key STUDENT( Number , Name, Classes) STUDENT( Number , Name, Classes )
  • 10. First Normal Form STUDENT
  • 12. Second Normal Form A table is in the second normal form if it's in the first normal form AND no column that is not part of the primary key is dependant only a portion of the primary key
  • 13. Second Normal Form The concept of functional dependency in central to normalisation and, in particular, strongly related to 2NF.
  • 14. Functional Dependency If ‘X’ is a set of attributes within a relation, then we say ‘A’ (an attribute or set of attributes), is functionally dependant on X, if and only if, for every combination of X, there is only one corresponding value of A We write this as : X -> A
  • 16. Functional Dependency It is clear that : RefNo -> Name, Address, Status or, most correctly, AccNo, RefNo -> Name, Address, Status
  • 19. Table in Second Normal Form
  • 20. Third Normal Form A table is in the third normal form if it is the second normal form and there are no non-key columns dependant on other non-key columns that could not act as the primary key.
  • 21. Table in Second Normal Form
  • 22. Table in Third Normal Form
  • 23. Boyce-Codd Normal Form All attributes in a relation should be dependant upon the key, the whole key and nothing but the key
  • 24. Important Papers E.F.Codd ‘ A Relational Model for Large Shared Data Banks’ CACM 13(6) June 1970 E.F. Codd ‘ Extending the Database Relational Model to Capture More Meaning’ ACM Transactions on Database Systems, 4(4), December 1979
  • 25. Table in Third Normal Form
  • 26. Redundancy in 3NF The combination of ROOM, TIME is unique to each tuple, no room is used twice at the same time (thus it is in 3NF). But, we know there is a redundancy in that ROOM depends LECTURER, therefore, we split the table...
  • 28. Difference between BCNF and 3NF Most relations in 3NF are also in BCNF, the only time this may not be true is when there is more than one candidate key for a relation and at least one of is composite.
  • 29. Fourth Normal Form Fourth normal form (or 4NF) requires that there be no non-trivial multivalued dependencies of attribute sets on something other than a superset of a candidate key. A table is said to be in 4NF if and only if it is in the BCNF and multivalued dependencies are functional dependencies. The 4NF removes unwanted data structures: multivalued dependencies.
  • 30. Fifth Normal Form Fifth normal form (5NF and also PJ/NF) requires that there are no non-trivial join dependencies that do not follow from the key constraints. A table is said to be in the 5NF if and only if it is in 4NF and every join dependency in it is implied by the candidate keys.
  • 31. Domain/Key Normal Form Domain/key normal form (or DKNF) requires that the database contains no constraints other than domain constraints and key constraints.