SlideShare a Scribd company logo
8
Most read
11
Most read
12
Most read
Normalisation and anomalies
Disclaimer: This presentation is prepared by trainees of
baabtra as a part of mentoring program. This is not official
document of baabtra –Mentoring Partner
Baabtra-Mentoring Partner is the mentoring division of baabte System Technologies Pvt .
Ltd
Title of the presentation
Shajeer pk
shajeer31@gmail.com
www.facebook.com/shajeer
twitter.com/shajeer_pk
in.linkedin.com/in/shajeerp
k2@gmail.com
9544559642
Normalisation and anomalies
ANOMALIES
• Tables that have redundant data have
problems known as anomalies. So data
redundancy is a cause of an anomaly.
• Redundancy is the duplication of the data.
There are 3 types of anomalies
1: Insert Anomaly: When you insert a record without having it stored on
the related record
2: Delete Anomaly: When you delete some information and lose valuable
related information at the same time.
3: Update Anomaly: Any change made to your data will require you to scan
all records to make the changes multiple time.
Insert anomaly
• An Insert Anomaly occurs when certain
attributes cannot be inserted into the
database without the presence of other
attribute
E.g.,
Course _no Tutor Room Room_size En_limit
353 Smith A532 45 40
351 Smith C320 100 60
355 Clark H940 400 300
456 Turner H940 400 45
e.g. we have built a new room (e.g. B123) but it has not yet been timetabled for any
courses or members of staff.
Delete Anomaly
• A Delete Anomaly exists when certain
attributes are lost because of the
deletion of other attributes.
E.g.;
Course _no Tutor Room Room_size En_limit
353 Smith A532 45 40
351 Smith C320 100 60
355 Clark H940 400 300
456 Turner H940 400 45
e.g. if we remove the entity, course_no:351 from the above table, the details of
room C320 get deleted. Which implies the corresponding course will also get
deleted.
Update Anomaly
• An Update Anomaly exists when one or
more instances of duplicated data is
updated, but not all.
E.g.;
Course _no Tutor Room Room_size En_limit
353 Smith A532 45 40
351 Smith C320 100 60
355 Clark H940 400 300
456 Turner H940 400 45
e.g. Room H940 has been improved, it is now of RSize = 500. For updating a
single entity, we have to update all other columns where room=H940.
Normalization will help us to remove
the Anomaly and create good database
Normalization
• Normalization is the process of putting things right, making them
normal. In a relational database the term has a specific
mathematical meaning having to do with separating elements of
data - names, addresses - into affinity groups, and defining the
normal or right relationships between them.
• This is database design technique which organizes tables in a
manner that reduces redundancy and dependency of data(That
means avoid anomaly)
• Normalization is ‘standardized’ rule for making database
1st Normal Form ,Requirements
• The requirements to satisfy the 1st NF:
– Each table has a primary key: minimal set of
attributes which can uniquely identify a record
– The values in each column of a table are atomic
(No multi-value attributes allowed).
– There are no repeating groups: two columns do
not store similar information in the same table.
1st Normal For Example
Un-normalized Students table:
Student# AdvID AdvName AdvRoom Class1 Class2
123 123A James 555 102-8 104-9
124 123B Smith 467 209-0 102-8
Normalized Students table:
Student# AdvID AdvName AdvRoom Class#
123 123A James 555 102-8
123 123A James 555 104-9
124 123B Smith 467 209-0
124 123B Smith 467 102-8
2nd Normal Form ,Requirements
• The requirements to satisfy the 2nd NF:
– All requirements for 1st NF must be met.
– Redundant data across multiple rows of a table
must be moved to a separate table.
• The resulting tables must be related to each other by use of foreign
key.
2nd Normal For Example
Students table:
Student# AdvID AdvName AdvRoom
123 123A James 555
124 123B Smith 467
Registration table:
Student# Class#
123 102-8
123 104-9
124 209-0
124 102-8
3rd Normal Form ,Requirements
• The requirements to satisfy the 3rd NF:
– All requirements for 2nd NF must be met.
– Eliminate fields that do not depend on the
primary key;
• That is, any field that is dependent not only on the primary key but also
on another field must be moved to another table.
3rd Normal Form Example
Students table
Advisor table:
AdvID AdvName AdvRoom
123A James 555
123B Smith 467
Student# AdvID
123 123A
124 123B
Student# Class#
123 102-8
123 104-9
124 209-0
124 102-8
Registration table:
Conclusion
• We have seen how Database Normalization
can decrease redundancy, increase efficiency
and reduce anomalies by implementing three
of seven different levels of normalization
called Normal Forms. The first three NF’s are
usually sufficient for most small to medium
size applications.
Thanks
Contact Us
Emarald Mall (Big Bazar Building)
Mavoor Road, Kozhikode,
Kerala, India.
Ph: + 91 – 495 40 25 550
NC Complex, Near Bus Stand
Mukkam, Kozhikode,
Kerala, India.
Ph: + 91 – 495 40 25 550
Start up Village
Eranakulam,
Kerala, India.
Email: info@baabtra.com
If this presentation helped you, please visit our
page facebook.com/baabtra and like it.
Thanks in advance.
www.baabtra.com | www.massbaab.com |www.baabte.com

More Related Content

PPTX
Functional dependencies and normalization
PPTX
Normalization in DBMS
PPTX
Normalization in a Database
PPTX
Normalization 1 nf,2nf,3nf,bcnf
PDF
Database Normalization
PPTX
Functional dependencies in Database Management System
PPT
normalization-1nf-to-3nf-with-same-example.ppt
PPS
Architecture of-dbms-and-data-independence
Functional dependencies and normalization
Normalization in DBMS
Normalization in a Database
Normalization 1 nf,2nf,3nf,bcnf
Database Normalization
Functional dependencies in Database Management System
normalization-1nf-to-3nf-with-same-example.ppt
Architecture of-dbms-and-data-independence

What's hot (20)

PDF
Normalization | (1NF) |(2NF) (3NF)|BCNF| 4NF |5NF
PPTX
PPTX
Relational databases
PPTX
Dbms keys
PPTX
Database, 3 Distribution Design
PDF
Enhanced Entity-Relationship (EER) Modeling
PPTX
Integrity Constraints
PPTX
PPT
Lossless decomposition
PPTX
Data Dictionary in System Analysis and Design
PPTX
Transaction management in DBMS
PDF
Dbms Notes Lecture 9 : Specialization, Generalization and Aggregation
PPTX
Decomposition using Functional Dependency
PDF
Functional dependency and normalization
PPT
Dbms relational model
PPTX
Join dependency
PPTX
Database design process
PPTX
Transaction states and properties
PPTX
Dbms normalization
Normalization | (1NF) |(2NF) (3NF)|BCNF| 4NF |5NF
Relational databases
Dbms keys
Database, 3 Distribution Design
Enhanced Entity-Relationship (EER) Modeling
Integrity Constraints
Lossless decomposition
Data Dictionary in System Analysis and Design
Transaction management in DBMS
Dbms Notes Lecture 9 : Specialization, Generalization and Aggregation
Decomposition using Functional Dependency
Functional dependency and normalization
Dbms relational model
Join dependency
Database design process
Transaction states and properties
Dbms normalization
Ad

Similar to Normalisation and anomalies (20)

PPTX
database ds...normalization data base
PPTX
database ds...normalization in data base
PPTX
Normal forms in DBMS1st Normal Form 2nd Normal Form 3rd Normal Form
PPTX
2 normalization
PDF
Normalisation [Slides].pdf introduction language
PPTX
Normalization.pptx
PPT
Normalization
PDF
Normalization in Database
PPTX
Database Normalization - First, second and Third Normal Forms with an example
PPTX
normalization In data base lecture no sixth
PPT
Roja128
PPTX
1-161103092724.pzxsdfdsdrgdrgdfgdfgdfgdfgptx
PPT
Chapter six - Normalization.ppt fundamental of db
PPTX
Normalization by Ashwin and Tanmay
PPTX
database Normalization
PPTX
04 CHAPTER FOUR - INTEGRITY CONSTRAINTS AND NORMALIZATION.pptx
DOCX
Normalization
PPTX
Normalization in Database Management System
PPTX
normalization-1.pptx
PPTX
Sql server ___________session3-normailzation
database ds...normalization data base
database ds...normalization in data base
Normal forms in DBMS1st Normal Form 2nd Normal Form 3rd Normal Form
2 normalization
Normalisation [Slides].pdf introduction language
Normalization.pptx
Normalization
Normalization in Database
Database Normalization - First, second and Third Normal Forms with an example
normalization In data base lecture no sixth
Roja128
1-161103092724.pzxsdfdsdrgdrgdfgdfgdfgdfgptx
Chapter six - Normalization.ppt fundamental of db
Normalization by Ashwin and Tanmay
database Normalization
04 CHAPTER FOUR - INTEGRITY CONSTRAINTS AND NORMALIZATION.pptx
Normalization
Normalization in Database Management System
normalization-1.pptx
Sql server ___________session3-normailzation
Ad

More from baabtra.com - No. 1 supplier of quality freshers (20)

PPTX
Agile methodology and scrum development
PDF
Acquiring new skills what you should know
PDF
Baabtra.com programming at school
PDF
99LMS for Enterprises - LMS that you will love
PPTX
Chapter 6 database normalisation
PPTX
Chapter 5 transactions and dcl statements
PPTX
Chapter 4 functions, views, indexing
PPTX
PPTX
Chapter 2 grouping,scalar and aggergate functions,joins inner join,outer join
PPTX
Chapter 1 introduction to sql server
PPTX
Chapter 1 introduction to sql server
Agile methodology and scrum development
Acquiring new skills what you should know
Baabtra.com programming at school
99LMS for Enterprises - LMS that you will love
Chapter 6 database normalisation
Chapter 5 transactions and dcl statements
Chapter 4 functions, views, indexing
Chapter 2 grouping,scalar and aggergate functions,joins inner join,outer join
Chapter 1 introduction to sql server
Chapter 1 introduction to sql server

Recently uploaded (20)

PDF
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
PPTX
20th Century Theater, Methods, History.pptx
PDF
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
PDF
Complications of Minimal Access-Surgery.pdf
PDF
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
PDF
HVAC Specification 2024 according to central public works department
PPTX
Share_Module_2_Power_conflict_and_negotiation.pptx
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PPTX
Introduction to pro and eukaryotes and differences.pptx
PDF
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
PDF
Uderstanding digital marketing and marketing stratergie for engaging the digi...
PDF
advance database management system book.pdf
PDF
Paper A Mock Exam 9_ Attempt review.pdf.
PPTX
TNA_Presentation-1-Final(SAVE)) (1).pptx
PDF
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
PPTX
A powerpoint presentation on the Revised K-10 Science Shaping Paper
PDF
Practical Manual AGRO-233 Principles and Practices of Natural Farming
PDF
IGGE1 Understanding the Self1234567891011
PDF
FORM 1 BIOLOGY MIND MAPS and their schemes
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
20th Century Theater, Methods, History.pptx
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
Complications of Minimal Access-Surgery.pdf
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
HVAC Specification 2024 according to central public works department
Share_Module_2_Power_conflict_and_negotiation.pptx
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
Introduction to pro and eukaryotes and differences.pptx
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
Uderstanding digital marketing and marketing stratergie for engaging the digi...
advance database management system book.pdf
Paper A Mock Exam 9_ Attempt review.pdf.
TNA_Presentation-1-Final(SAVE)) (1).pptx
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
A powerpoint presentation on the Revised K-10 Science Shaping Paper
Practical Manual AGRO-233 Principles and Practices of Natural Farming
IGGE1 Understanding the Self1234567891011
FORM 1 BIOLOGY MIND MAPS and their schemes

Normalisation and anomalies

  • 2. Disclaimer: This presentation is prepared by trainees of baabtra as a part of mentoring program. This is not official document of baabtra –Mentoring Partner Baabtra-Mentoring Partner is the mentoring division of baabte System Technologies Pvt . Ltd
  • 3. Title of the presentation Shajeer pk shajeer31@gmail.com www.facebook.com/shajeer twitter.com/shajeer_pk in.linkedin.com/in/shajeerp k2@gmail.com 9544559642
  • 5. ANOMALIES • Tables that have redundant data have problems known as anomalies. So data redundancy is a cause of an anomaly. • Redundancy is the duplication of the data.
  • 6. There are 3 types of anomalies 1: Insert Anomaly: When you insert a record without having it stored on the related record 2: Delete Anomaly: When you delete some information and lose valuable related information at the same time. 3: Update Anomaly: Any change made to your data will require you to scan all records to make the changes multiple time.
  • 7. Insert anomaly • An Insert Anomaly occurs when certain attributes cannot be inserted into the database without the presence of other attribute
  • 8. E.g., Course _no Tutor Room Room_size En_limit 353 Smith A532 45 40 351 Smith C320 100 60 355 Clark H940 400 300 456 Turner H940 400 45 e.g. we have built a new room (e.g. B123) but it has not yet been timetabled for any courses or members of staff.
  • 9. Delete Anomaly • A Delete Anomaly exists when certain attributes are lost because of the deletion of other attributes.
  • 10. E.g.; Course _no Tutor Room Room_size En_limit 353 Smith A532 45 40 351 Smith C320 100 60 355 Clark H940 400 300 456 Turner H940 400 45 e.g. if we remove the entity, course_no:351 from the above table, the details of room C320 get deleted. Which implies the corresponding course will also get deleted.
  • 11. Update Anomaly • An Update Anomaly exists when one or more instances of duplicated data is updated, but not all.
  • 12. E.g.; Course _no Tutor Room Room_size En_limit 353 Smith A532 45 40 351 Smith C320 100 60 355 Clark H940 400 300 456 Turner H940 400 45 e.g. Room H940 has been improved, it is now of RSize = 500. For updating a single entity, we have to update all other columns where room=H940.
  • 13. Normalization will help us to remove the Anomaly and create good database
  • 14. Normalization • Normalization is the process of putting things right, making them normal. In a relational database the term has a specific mathematical meaning having to do with separating elements of data - names, addresses - into affinity groups, and defining the normal or right relationships between them. • This is database design technique which organizes tables in a manner that reduces redundancy and dependency of data(That means avoid anomaly) • Normalization is ‘standardized’ rule for making database
  • 15. 1st Normal Form ,Requirements • The requirements to satisfy the 1st NF: – Each table has a primary key: minimal set of attributes which can uniquely identify a record – The values in each column of a table are atomic (No multi-value attributes allowed). – There are no repeating groups: two columns do not store similar information in the same table.
  • 16. 1st Normal For Example Un-normalized Students table: Student# AdvID AdvName AdvRoom Class1 Class2 123 123A James 555 102-8 104-9 124 123B Smith 467 209-0 102-8 Normalized Students table: Student# AdvID AdvName AdvRoom Class# 123 123A James 555 102-8 123 123A James 555 104-9 124 123B Smith 467 209-0 124 123B Smith 467 102-8
  • 17. 2nd Normal Form ,Requirements • The requirements to satisfy the 2nd NF: – All requirements for 1st NF must be met. – Redundant data across multiple rows of a table must be moved to a separate table. • The resulting tables must be related to each other by use of foreign key.
  • 18. 2nd Normal For Example Students table: Student# AdvID AdvName AdvRoom 123 123A James 555 124 123B Smith 467 Registration table: Student# Class# 123 102-8 123 104-9 124 209-0 124 102-8
  • 19. 3rd Normal Form ,Requirements • The requirements to satisfy the 3rd NF: – All requirements for 2nd NF must be met. – Eliminate fields that do not depend on the primary key; • That is, any field that is dependent not only on the primary key but also on another field must be moved to another table.
  • 20. 3rd Normal Form Example Students table Advisor table: AdvID AdvName AdvRoom 123A James 555 123B Smith 467 Student# AdvID 123 123A 124 123B Student# Class# 123 102-8 123 104-9 124 209-0 124 102-8 Registration table:
  • 21. Conclusion • We have seen how Database Normalization can decrease redundancy, increase efficiency and reduce anomalies by implementing three of seven different levels of normalization called Normal Forms. The first three NF’s are usually sufficient for most small to medium size applications.
  • 23. Contact Us Emarald Mall (Big Bazar Building) Mavoor Road, Kozhikode, Kerala, India. Ph: + 91 – 495 40 25 550 NC Complex, Near Bus Stand Mukkam, Kozhikode, Kerala, India. Ph: + 91 – 495 40 25 550 Start up Village Eranakulam, Kerala, India. Email: info@baabtra.com
  • 24. If this presentation helped you, please visit our page facebook.com/baabtra and like it. Thanks in advance. www.baabtra.com | www.massbaab.com |www.baabte.com