SlideShare a Scribd company logo
Database Normalization
Principals of Database Normalization
by Dmytro Lukachuk
Overview
• Normalization, main ideas;
• Normal forms;
• Normalization and Denormalization;
• Practical examples.
Normalization
• Normalization is the process of organizing the
attributes and tables to minimize redundancy.
Wikipedia
Aims of normalization:
• Minimize logical redundancy;
• Free the DB of modification anomalies;
• Minimize redesign when extending DB
structure;
• Simplification for applying integrity
constraints.
Edgar Frank Codd
Other suggestions:
• The aim of Normalization is not to decrease or
increase performance;
• The aim of Normalization is not to decrease or
increase physical memory size of DB.
So what is Normalization?
• The process of transformation of database
relations to the structure that fits normal form
(NF).
Normal Form
• A set of requirements (rules, principals) that
satisfy relations in DB.
Normal forms:
• 1st Normal Form (1NF);
• 2nd Normal Form (1NF);
• 3rd Normal Form (3NF);
• Boyce-Codd Normal Form (BCNF);
• 4th Normal Form (4NF);
• 5th Normal Form (5NF);
• Domain/key Normal Form (DKNF);
• 6th Normal Form (6NF).
1st Normal Form Principals
• No top-to-bottom ordering to the rows;
• No left-to-right ordering to the columns;
• No duplicate rows;
• Every cell contains only one value;
• All columns are regular (no hidden
components).
2nd Normal Form Principals
• Relations are in 1st Normal Form;
• Every non-prime attribute is dependent on
candidate key.
3rd Normal Form
• Relations are in 2nd Normal Form;
• Non-prime attribute can be determined only
by the candidate key and not any other non-
prime attribute (transitive dependency).
Employee -> Department
Department -> Telephone
Employee -> Telephone (transitive dependency)
Boyce-Codd Normal Form
• Relations are in 3rd Normal Form
• Primary key does not depend on non-prime
attribute.
Relation is in 3NF but not in BCNF when relation has two or more candidate
key that are composite and have common attribute
Denormalization
• Transformation of DB structure to the form
that does not satisfy normal forms.
• Process of optimizing performance by adding
redundant data or by grouping data.
Advantages
of Normalization
• Smaller
• Fast updates
• Fast inserts
• Less need for heavy group by or distinct
queries as data is not duplicated
Disadvantages of Normalization
• Joins
• Bad indexing strategy
Advantages of Denormalization
• No joins
• Fast select
• Efficient index usage
Disadvantages of Denormalization
• Costly inserts
• Costly updates
Compare
Normalization:
SELECT product_name, order_date
FROM orders
INNER JOIN products USING(product_id)
WHERE product_name like 'A%'
ORDER by order_date DESC
Denormalizaion:
SELECT product_name, order_date
FROM orders
WHERE product_name like 'A%'
ORDER by order_date DESC
Slider structure analysis:
Slider table
Slider_config table
Slider_config_scope
Slide table
Slide_config table
Controversial aspects
What is the best way?
The best way is to –
MIX principals of normalization with
denormalization approach depending on
certain application purposes.

More Related Content

PPTX
Slideshare ppt
PDF
Normalization form tutorial
PPT
Data normailazation
PDF
Normalization and Codd's Rule
PPTX
Normalization 1 nf,2nf,3nf,bcnf
PPTX
Normalization_Presentation_Englishh.pptx
PPTX
Kumar lav
Slideshare ppt
Normalization form tutorial
Data normailazation
Normalization and Codd's Rule
Normalization 1 nf,2nf,3nf,bcnf
Normalization_Presentation_Englishh.pptx
Kumar lav

Similar to Database normalisation by D.Lukachuk (20)

PPT
Normalization
PPT
Normalization
PPTX
Database Management System - Database Normalization.pptx
PPTX
Database Normalization.pptx
PPTX
normaliztion
PPTX
Normalization ppt for RDBMS PPT FOR BCA and for computer science student..pptx
PPTX
PPS
Rdbms xp 03
PDF
Dependencies in various topics like normalisation and its types
PPTX
Normalization
PPTX
Normalization and its various types in DBMS
PPTX
Database.ppt
PPTX
Jai dbms
PPTX
Normalization_database_EERD_education,presentation.pptx
PDF
Advanced Normalization
PDF
What is Database NormalizationExplain the guidelines for ensuring t.pdf
PPTX
database Normalization
PPTX
Normalization_and_Types_of_NormalForms.pptx
DOCX
Normalization in relational database management systems
PPTX
Normalization
Normalization
Normalization
Database Management System - Database Normalization.pptx
Database Normalization.pptx
normaliztion
Normalization ppt for RDBMS PPT FOR BCA and for computer science student..pptx
Rdbms xp 03
Dependencies in various topics like normalisation and its types
Normalization
Normalization and its various types in DBMS
Database.ppt
Jai dbms
Normalization_database_EERD_education,presentation.pptx
Advanced Normalization
What is Database NormalizationExplain the guidelines for ensuring t.pdf
database Normalization
Normalization_and_Types_of_NormalForms.pptx
Normalization in relational database management systems
Normalization
Ad

Recently uploaded (20)

PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PDF
PPT on Performance Review to get promotions
PPTX
Geodesy 1.pptx...............................................
PPT
Project quality management in manufacturing
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPTX
Construction Project Organization Group 2.pptx
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPT
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
DOCX
573137875-Attendance-Management-System-original
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PDF
composite construction of structures.pdf
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PPTX
Lecture Notes Electrical Wiring System Components
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
bas. eng. economics group 4 presentation 1.pptx
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PPT on Performance Review to get promotions
Geodesy 1.pptx...............................................
Project quality management in manufacturing
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
Construction Project Organization Group 2.pptx
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
Foundation to blockchain - A guide to Blockchain Tech
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
573137875-Attendance-Management-System-original
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
composite construction of structures.pdf
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
Lecture Notes Electrical Wiring System Components
Model Code of Practice - Construction Work - 21102022 .pdf
UNIT-1 - COAL BASED THERMAL POWER PLANTS
bas. eng. economics group 4 presentation 1.pptx
Ad

Database normalisation by D.Lukachuk