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

PPTX
Normalization in DBMS
Prateek Parimal
 
PPTX
database Normalization
Harsiddhi Thakkar
 
PPT
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
Oum Saokosal
 
PDF
Normalization | (1NF) |(2NF) (3NF)|BCNF| 4NF |5NF
Biplap Bhattarai
 
PPTX
Normal forms
Samuel Igbanogu
 
PDF
Database Normalization
Arun Sharma
 
PDF
Normalization in DBMS
Hitesh Mohapatra
 
PPTX
The Relational Database Model
Shishir Aryal
 
Normalization in DBMS
Prateek Parimal
 
database Normalization
Harsiddhi Thakkar
 
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
Oum Saokosal
 
Normalization | (1NF) |(2NF) (3NF)|BCNF| 4NF |5NF
Biplap Bhattarai
 
Normal forms
Samuel Igbanogu
 
Database Normalization
Arun Sharma
 
Normalization in DBMS
Hitesh Mohapatra
 
The Relational Database Model
Shishir Aryal
 

What's hot (20)

PPTX
Normalization in DBMS
Prateek Parimal
 
PDF
Relational algebra in dbms
Vignesh Saravanan
 
PPTX
Normalization in a Database
Bishrul Haq
 
PPT
Joins in SQL
Vigneshwaran Sankaran
 
PPTX
FUNCTION DEPENDENCY AND TYPES & EXAMPLE
Vraj Patel
 
PPTX
DBMS: Types of keys
Bharati Ugale
 
PDF
Nested Queries Lecture
Felipe Costa
 
PPT
Abstract data types
Poojith Chowdhary
 
PPTX
Relational model
Dabbal Singh Mahara
 
PPTX
Normalization
Salman Memon
 
PPTX
joins in database
Sultan Arshad
 
PPTX
Relational algebra ppt
GirdharRatne
 
PPTX
Integrity Constraints
madhav bansal
 
PPTX
ER model to Relational model mapping
Shubham Saini
 
PPTX
Data Manipulation Language
Jas Singh Bhasin
 
PPT
Entity Relationship Diagram
Shakila Mahjabin
 
PPT
Normalization
Altafsoomro
 
PPSX
Functional dependency
Dashani Rajapaksha
 
PPTX
Dbms normalization
Pratik Devmurari
 
PPTX
Database Concept - Normalization (1NF, 2NF, 3NF)
Oum Saokosal
 
Normalization in DBMS
Prateek Parimal
 
Relational algebra in dbms
Vignesh Saravanan
 
Normalization in a Database
Bishrul Haq
 
Joins in SQL
Vigneshwaran Sankaran
 
FUNCTION DEPENDENCY AND TYPES & EXAMPLE
Vraj Patel
 
DBMS: Types of keys
Bharati Ugale
 
Nested Queries Lecture
Felipe Costa
 
Abstract data types
Poojith Chowdhary
 
Relational model
Dabbal Singh Mahara
 
Normalization
Salman Memon
 
joins in database
Sultan Arshad
 
Relational algebra ppt
GirdharRatne
 
Integrity Constraints
madhav bansal
 
ER model to Relational model mapping
Shubham Saini
 
Data Manipulation Language
Jas Singh Bhasin
 
Entity Relationship Diagram
Shakila Mahjabin
 
Normalization
Altafsoomro
 
Functional dependency
Dashani Rajapaksha
 
Dbms normalization
Pratik Devmurari
 
Database Concept - Normalization (1NF, 2NF, 3NF)
Oum Saokosal
 
Ad

Similar to Databases: Normalisation (20)

PPTX
Normalization and its various types in DBMS
Shouvic Banik0139
 
PPTX
Database normalization
Jignesh Jain
 
PDF
Assignment#11
Sunita Milind Dol
 
PPTX
Normalization in Relational database management systems
backiyalakshmi14
 
PPTX
Normalization in rdbms types and examples
BackiyalakshmiVenkat
 
PPTX
1-161103092724.pptx
YashaswiniSrinivasan1
 
PDF
1-161103092724 (1).pdf
BasirKhan21
 
PPTX
Normalization and three normal forms.pptx
Zoha681526
 
PDF
What is Database NormalizationExplain the guidelines for ensuring t.pdf
arjunstores123
 
PDF
Dependencies in various topics like normalisation and its types
nsrChowdary1
 
PPT
Chuẩn hóa CSDL
phananhvu
 
PPTX
Normalization
Ahmed Farag
 
PPTX
Normal forms fourth and fifth.pptx
SadagopanS
 
PPTX
Normalization 1 nf,2nf,3nf,bcnf
Shriya agrawal
 
PPTX
Normalization in data base management system.pptx
anitha803197
 
PDF
Types of normalization
PratibhaRashmiSingh
 
PPTX
Presentation on Normalization.pptx
kshipra sony
 
PPTX
Database Normalization.pptx
Green University of Bangladesh
 
PDF
Advanced Normalization
Abdullah Khosa
 
Normalization and its various types in DBMS
Shouvic Banik0139
 
Database normalization
Jignesh Jain
 
Assignment#11
Sunita Milind Dol
 
Normalization in Relational database management systems
backiyalakshmi14
 
Normalization in rdbms types and examples
BackiyalakshmiVenkat
 
1-161103092724.pptx
YashaswiniSrinivasan1
 
1-161103092724 (1).pdf
BasirKhan21
 
Normalization and three normal forms.pptx
Zoha681526
 
What is Database NormalizationExplain the guidelines for ensuring t.pdf
arjunstores123
 
Dependencies in various topics like normalisation and its types
nsrChowdary1
 
Chuẩn hóa CSDL
phananhvu
 
Normalization
Ahmed Farag
 
Normal forms fourth and fifth.pptx
SadagopanS
 
Normalization 1 nf,2nf,3nf,bcnf
Shriya agrawal
 
Normalization in data base management system.pptx
anitha803197
 
Types of normalization
PratibhaRashmiSingh
 
Presentation on Normalization.pptx
kshipra sony
 
Database Normalization.pptx
Green University of Bangladesh
 
Advanced Normalization
Abdullah Khosa
 
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
 

Recently uploaded (20)

PDF
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
PDF
Software Development Company | KodekX
KodekX
 
PDF
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
PDF
Automating ArcGIS Content Discovery with FME: A Real World Use Case
Safe Software
 
PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
PPTX
Smart Infrastructure and Automation through IoT Sensors
Rejig Digital
 
PPTX
ChatGPT's Deck on The Enduring Legacy of Fax Machines
Greg Swan
 
PDF
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
PDF
Building High-Performance Oracle Teams: Strategic Staffing for Database Manag...
SMACT Works
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PDF
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
PPTX
How to Build a Scalable Micro-Investing Platform in 2025 - A Founder’s Guide ...
Third Rock Techkno
 
PPTX
C Programming Basics concept krnppt.pptx
Karan Prajapat
 
PDF
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
PDF
How-Cloud-Computing-Impacts-Businesses-in-2025-and-Beyond.pdf
Artjoker Software Development Company
 
PDF
The Evolution of KM Roles (Presented at Knowledge Summit Dublin 2025)
Enterprise Knowledge
 
PPT
L2 Rules of Netiquette in Empowerment technology
Archibal2
 
PDF
agentic-ai-and-the-future-of-autonomous-systems.pdf
siddharthnetsavvies
 
PDF
A Day in the Life of Location Data - Turning Where into How.pdf
Precisely
 
PDF
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
Software Development Company | KodekX
KodekX
 
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
Automating ArcGIS Content Discovery with FME: A Real World Use Case
Safe Software
 
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
Smart Infrastructure and Automation through IoT Sensors
Rejig Digital
 
ChatGPT's Deck on The Enduring Legacy of Fax Machines
Greg Swan
 
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
Building High-Performance Oracle Teams: Strategic Staffing for Database Manag...
SMACT Works
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
How to Build a Scalable Micro-Investing Platform in 2025 - A Founder’s Guide ...
Third Rock Techkno
 
C Programming Basics concept krnppt.pptx
Karan Prajapat
 
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
How-Cloud-Computing-Impacts-Businesses-in-2025-and-Beyond.pdf
Artjoker Software Development Company
 
The Evolution of KM Roles (Presented at Knowledge Summit Dublin 2025)
Enterprise Knowledge
 
L2 Rules of Netiquette in Empowerment technology
Archibal2
 
agentic-ai-and-the-future-of-autonomous-systems.pdf
siddharthnetsavvies
 
A Day in the Life of Location Data - Turning Where into How.pdf
Precisely
 
Presentation about Hardware and Software in Computer
snehamodhawadiya
 

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.