SlideShare a Scribd company logo
1 of 11
IM 101
1/16/2023 Lecture 8
Which one is better?
• Versus this one:
EID Name DeptID DeptName
A01 Ali 12 IT
A12 Eric 10 Sales
A13 Eric 12 IT
A03 Tyler 12 IT
EmpDept
Emp
EID Name DeptID
A01 Ali 12
A12 Eric 10
A13 Eric 12
A03 Tyler 12
Dept
DeptID DeptName
12 IT
10 Sales
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
Example
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 or staff.
Delete Anomaly
• A Delete Anomaly exists when certain
attributes are lost because of the
deletion of other attributes.
Example
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.
Example
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 Room_Size = 500. For
updating a single entity, we have to update all other columns where
room=H940.
Thanks

More Related Content

More from Riannel Tecson

Writing the Review of Related Literature.pptx
Writing the Review of Related Literature.pptxWriting the Review of Related Literature.pptx
Writing the Review of Related Literature.pptxRiannel Tecson
 
Week 1 and 2 Getting started with DBMS.pptx
Week 1 and 2 Getting started with DBMS.pptxWeek 1 and 2 Getting started with DBMS.pptx
Week 1 and 2 Getting started with DBMS.pptxRiannel Tecson
 
Network Tools, Materials and Equipment.pptx
Network Tools, Materials and Equipment.pptxNetwork Tools, Materials and Equipment.pptx
Network Tools, Materials and Equipment.pptxRiannel Tecson
 
Binary Search Tree Traversal.ppt
Binary Search Tree Traversal.pptBinary Search Tree Traversal.ppt
Binary Search Tree Traversal.pptRiannel Tecson
 
Does technology shaed soceity.ppt
Does technology shaed soceity.pptDoes technology shaed soceity.ppt
Does technology shaed soceity.pptRiannel Tecson
 
Chapter 03 Application Software.ppt
Chapter 03 Application Software.pptChapter 03 Application Software.ppt
Chapter 03 Application Software.pptRiannel Tecson
 
Week 1 mediaandinformationliteracycommunication.pdf
Week 1 mediaandinformationliteracycommunication.pdfWeek 1 mediaandinformationliteracycommunication.pdf
Week 1 mediaandinformationliteracycommunication.pdfRiannel Tecson
 
MIL Week 1 Lesson 1.pptx
MIL Week 1 Lesson 1.pptxMIL Week 1 Lesson 1.pptx
MIL Week 1 Lesson 1.pptxRiannel Tecson
 

More from Riannel Tecson (10)

Writing the Review of Related Literature.pptx
Writing the Review of Related Literature.pptxWriting the Review of Related Literature.pptx
Writing the Review of Related Literature.pptx
 
Week 1 and 2 Getting started with DBMS.pptx
Week 1 and 2 Getting started with DBMS.pptxWeek 1 and 2 Getting started with DBMS.pptx
Week 1 and 2 Getting started with DBMS.pptx
 
Network Tools, Materials and Equipment.pptx
Network Tools, Materials and Equipment.pptxNetwork Tools, Materials and Equipment.pptx
Network Tools, Materials and Equipment.pptx
 
Binary Search Tree Traversal.ppt
Binary Search Tree Traversal.pptBinary Search Tree Traversal.ppt
Binary Search Tree Traversal.ppt
 
Does technology shaed soceity.ppt
Does technology shaed soceity.pptDoes technology shaed soceity.ppt
Does technology shaed soceity.ppt
 
Chapter 03 Application Software.ppt
Chapter 03 Application Software.pptChapter 03 Application Software.ppt
Chapter 03 Application Software.ppt
 
Media Use Log.pptx
Media Use Log.pptxMedia Use Log.pptx
Media Use Log.pptx
 
Week 1 mediaandinformationliteracycommunication.pdf
Week 1 mediaandinformationliteracycommunication.pdfWeek 1 mediaandinformationliteracycommunication.pdf
Week 1 mediaandinformationliteracycommunication.pdf
 
MIL Week 1 Lesson 1.pptx
MIL Week 1 Lesson 1.pptxMIL Week 1 Lesson 1.pptx
MIL Week 1 Lesson 1.pptx
 
Binary Trees.ppt
Binary Trees.pptBinary Trees.ppt
Binary Trees.ppt
 

Recently uploaded

Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 

Recently uploaded (20)

Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 

Week 5 Update Anomalies.pptx

  • 2. 1/16/2023 Lecture 8 Which one is better? • Versus this one: EID Name DeptID DeptName A01 Ali 12 IT A12 Eric 10 Sales A13 Eric 12 IT A03 Tyler 12 IT EmpDept Emp EID Name DeptID A01 Ali 12 A12 Eric 10 A13 Eric 12 A03 Tyler 12 Dept DeptID DeptName 12 IT 10 Sales
  • 3. 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.
  • 4. 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.
  • 5. Insert anomaly • An Insert Anomaly occurs when certain attributes cannot be inserted into the database without the presence of other attribute
  • 6. Example 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 or staff.
  • 7. Delete Anomaly • A Delete Anomaly exists when certain attributes are lost because of the deletion of other attributes.
  • 8. Example 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.
  • 9. Update Anomaly • An Update Anomaly exists when one or more instances of duplicated data is updated, but not all.
  • 10. Example 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 Room_Size = 500. For updating a single entity, we have to update all other columns where room=H940.