SlideShare a Scribd company logo
6
Most read
8
Most read
9
Most read
Data Redundancy
&
Update Anomalies
Made by
Jenish Patel
Kalpesh Patel
Kaval Patel
 A major aim of relational database design is to group
attribute into relations to minimize data redundancy and
thereby reduce the file storage space required by the
implemented base relations.
Data redundancy
 Data redundancy is a condition created within a database
or data storage technology in which the same piece of
data is held in two separate places.
Data redundancy
 Let’s consider following three relations :
 Staff(Staff_no,Sname,Position,Salary,Branch_no)
 Branch(Branch_no,Baddress)
 Staffbranch(Staff_no,Sname,Position,Salary,Branch_no,Baddress)
The primary keys are underlined.
 These relations contain the data given below:
1) Staff
Staff_no Sname Position Salary Branch_no
S1 John Manager 10000 B005
S2 Ann Assistant 5000 B003
S3 Suhas Supervisor 7000 B007
S4 Julie Assistant 5000 B007
S5 Mary Assistant 5000 B005
2) Branch
3) Staffbranch
Branch_no Baddress
B005 22 deccan, Pune.
B003 10 bandra, Mumbai.
B007 32 Main st, Nasik.
Staff_no Sname Position Salary Branch_no Baddress
S1 John Manager 10000 B005 22 deccan, Pune.
S2 Ann Assistant 5000 B003 10 bandra, Mumbai.
S3 Suhas Supervisor 7000 B007 32 Main st, Nasik.
S4 Julie Assistant 5000 B007 32 Main st, Nasik.
S5 Mary Assistant 5000 B005 22 deccan, Pune.
 In Staffbranch relation there is redundant data.
 Branch address is repeated for every member of staff
located at that branch.
 In constant, the branch detail appear only once for each
branch in the Branch relation.
 And only the Brench_no is repeated in the Staff relation.
 Relations that have redundant data have problems called
Update Anomalies, which are classified as:
1. Insertion anomalies
2. Deletion anomalies
3. Modification anomalies
Insertion anomalies
There are two main types of insertion anomalies:
i. To insert the detail of new staff located at the branch
number B007, we must enter the correct detail od
branch No. B007 in other tuple in Staffbranch relation.
But table (2) doesn't suffer from this inconsistency.
ii. To insert detail of new branch that currently has no staff
into Staffbranch relation, it is necessary to enter nulls
into attributes for Staff, such as Staff_no. But Staff_no
violates integrity and is not allowed. The design of
relations shows in table(2) avoid this problem because
branch details are entered in Branch relation separately
from the Staff detail.
Deletion anomalies
 If only one staff is working at a branch, and if that staff’s
information is deleted, then branch details are also lost,
from the database.
 For example, if Staff_no S2’s record is deleted, the branch
information of Branch_no B003 is also lost. The design of
the relations in table(2) avoid this problem, because
branch tuples stored separately from Staff tuple and
attribute and attribute Branch_no relates two relations.
Modification anomalies
 If we want to change the value of one of the attributes of
a particular branch in the Staffbranch relation.
 For example, the address for branch No. B003, we must
update tuples of all staff located at the branch. If this
modification is not carried out, the database relation will
become inconsistent.
How To Avoid Anomalies??
 The use of normalization
 The goal of the normalization process is to define
relations
 So that each relation is about one kind of thing.
 This seems like a reasonable condition, given the
problems that it prevents
Data Redundancy & Update Anomalies
How Normalization works??
 If you know a customer id, then you know the person's
name and address.
 If you know a stock identifier, then you know its current
price and most recent dividend.
 Finally, for any pairing of a customer id and a stock
identifier, you know how many shares that person owns of
that stock
QUESTIONS ARE GUARANTEED IN LIFE
BUT ANSWERS ARE NOT…!!
ANY QUESTIONS????
THANK YOU

More Related Content

PPTX
Functional dependencies and normalization
PPT
Files Vs DataBase
PPTX
Unit1 DBMS Introduction
PPTX
Advantages of DBMS
PPT
Normalization in Relational Database.ppt
PPT
Database design
PPT
Introduction & history of dbms
PPT
Data Models.ppt
Functional dependencies and normalization
Files Vs DataBase
Unit1 DBMS Introduction
Advantages of DBMS
Normalization in Relational Database.ppt
Database design
Introduction & history of dbms
Data Models.ppt

What's hot (20)

PDF
Normalization in DBMS
PPT
Entity Relationship Diagram
PPTX
Relational Data Model Introduction
PPTX
Relational model
PPT
Databases: Normalisation
PPTX
Normalization in DBMS
PDF
Dbms Notes Lecture 9 : Specialization, Generalization and Aggregation
PPTX
FUNCTION DEPENDENCY AND TYPES & EXAMPLE
PDF
Dbms 14: Relational Calculus
PPTX
DBMS: Types of keys
PPT
File organization 1
PPTX
Query processing and optimization (updated)
PPT
File organisation
PDF
Triggers and active database
PDF
Database design & Normalization (1NF, 2NF, 3NF)
PPTX
Data Integration and Transformation in Data mining
PPTX
Integrity Constraints
PPTX
Relational Database Design
PPTX
Database Concept - Normalization (1NF, 2NF, 3NF)
Normalization in DBMS
Entity Relationship Diagram
Relational Data Model Introduction
Relational model
Databases: Normalisation
Normalization in DBMS
Dbms Notes Lecture 9 : Specialization, Generalization and Aggregation
FUNCTION DEPENDENCY AND TYPES & EXAMPLE
Dbms 14: Relational Calculus
DBMS: Types of keys
File organization 1
Query processing and optimization (updated)
File organisation
Triggers and active database
Database design & Normalization (1NF, 2NF, 3NF)
Data Integration and Transformation in Data mining
Integrity Constraints
Relational Database Design
Database Concept - Normalization (1NF, 2NF, 3NF)
Ad

Viewers also liked (20)

PPTX
PPT
DBMS - Normalization
PPTX
Chapter 10 Anomaly Detection
PPTX
Data base management system
PPT
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
PPTX
Database Design E R 2009
PPT
Data independence
PPTX
physical and logical data independence
PPTX
Fact - Finding Techniques
PPT
Fact finding techniques
PPTX
System Analysis Fact Finding Methods
PPTX
Normalization
PPT
A N S I S P A R C Architecture
PPT
12. Indexing and Hashing in DBMS
PPT
3. Relational Models in DBMS
PPTX
Database - Entity Relationship Diagram (ERD)
PPTX
Database : Relational Data Model
PPT
Types dbms
DBMS - Normalization
Chapter 10 Anomaly Detection
Data base management system
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
Database Design E R 2009
Data independence
physical and logical data independence
Fact - Finding Techniques
Fact finding techniques
System Analysis Fact Finding Methods
Normalization
A N S I S P A R C Architecture
12. Indexing and Hashing in DBMS
3. Relational Models in DBMS
Database - Entity Relationship Diagram (ERD)
Database : Relational Data Model
Types dbms
Ad

Similar to Data Redundancy & Update Anomalies (20)

PDF
Database design normalization note and exercise
PDF
Chapter 2 Relational Data Model-part 3
PPTX
Module 4_PART1.pptx
PPTX
1-161103092724.pzxsdfdsdrgdrgdfgdfgdfgdfgptx
PPTX
DATABASE MANAGEMENT SYSTEM
PPTX
Chap04 (normalization 1 2 3 form ).pptx
PPTX
DBMS_Module 3_Functional Dependencies and Normalization.pptx
PPT
Normalization by Sanu
PPTX
Relational database
PPTX
09.01 normalization
PPT
Chapter 14: Normalization and Transitive dependency
PPT
Normalization_BCA_
PDF
Chapter 4 notes DBMS.pdf
PPT
NORMALIZATION in database management systems
PDF
DBMS 3.pdf
PPTX
nosql-module1ppt-230309062548-d60645ec.pptx
PPT
basic concepts of Entity relationship diagram
PPT
Normalisation_2-1-1-normalization in Database management system (1).ppt
PPT
MODULE 3 -Normalization_1.ppt moduled in design
Database design normalization note and exercise
Chapter 2 Relational Data Model-part 3
Module 4_PART1.pptx
1-161103092724.pzxsdfdsdrgdrgdfgdfgdfgdfgptx
DATABASE MANAGEMENT SYSTEM
Chap04 (normalization 1 2 3 form ).pptx
DBMS_Module 3_Functional Dependencies and Normalization.pptx
Normalization by Sanu
Relational database
09.01 normalization
Chapter 14: Normalization and Transitive dependency
Normalization_BCA_
Chapter 4 notes DBMS.pdf
NORMALIZATION in database management systems
DBMS 3.pdf
nosql-module1ppt-230309062548-d60645ec.pptx
basic concepts of Entity relationship diagram
Normalisation_2-1-1-normalization in Database management system (1).ppt
MODULE 3 -Normalization_1.ppt moduled in design

Recently uploaded (20)

PPTX
01_intro xxxxxxxxxxfffffffffffaaaaaaaaaaafg
PDF
Data Engineering Interview Questions & Answers Cloud Data Stacks (AWS, Azure,...
PPTX
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
PPTX
climate analysis of Dhaka ,Banglades.pptx
PDF
22.Patil - Early prediction of Alzheimer’s disease using convolutional neural...
PPTX
STERILIZATION AND DISINFECTION-1.ppthhhbx
PDF
Oracle OFSAA_ The Complete Guide to Transforming Financial Risk Management an...
PPTX
Topic 5 Presentation 5 Lesson 5 Corporate Fin
PDF
Microsoft Core Cloud Services powerpoint
PPTX
(Ali Hamza) Roll No: (F24-BSCS-1103).pptx
PDF
Galatica Smart Energy Infrastructure Startup Pitch Deck
PPTX
CEE 2 REPORT G7.pptxbdbshjdgsgjgsjfiuhsd
PDF
[EN] Industrial Machine Downtime Prediction
PPTX
QUANTUM_COMPUTING_AND_ITS_POTENTIAL_APPLICATIONS[2].pptx
PPTX
mbdjdhjjodule 5-1 rhfhhfjtjjhafbrhfnfbbfnb
PPTX
modul_python (1).pptx for professional and student
PDF
Optimise Shopper Experiences with a Strong Data Estate.pdf
PDF
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
PPTX
Introduction-to-Cloud-ComputingFinal.pptx
PPTX
Market Analysis -202507- Wind-Solar+Hybrid+Street+Lights+for+the+North+Amer...
01_intro xxxxxxxxxxfffffffffffaaaaaaaaaaafg
Data Engineering Interview Questions & Answers Cloud Data Stacks (AWS, Azure,...
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
climate analysis of Dhaka ,Banglades.pptx
22.Patil - Early prediction of Alzheimer’s disease using convolutional neural...
STERILIZATION AND DISINFECTION-1.ppthhhbx
Oracle OFSAA_ The Complete Guide to Transforming Financial Risk Management an...
Topic 5 Presentation 5 Lesson 5 Corporate Fin
Microsoft Core Cloud Services powerpoint
(Ali Hamza) Roll No: (F24-BSCS-1103).pptx
Galatica Smart Energy Infrastructure Startup Pitch Deck
CEE 2 REPORT G7.pptxbdbshjdgsgjgsjfiuhsd
[EN] Industrial Machine Downtime Prediction
QUANTUM_COMPUTING_AND_ITS_POTENTIAL_APPLICATIONS[2].pptx
mbdjdhjjodule 5-1 rhfhhfjtjjhafbrhfnfbbfnb
modul_python (1).pptx for professional and student
Optimise Shopper Experiences with a Strong Data Estate.pdf
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
Introduction-to-Cloud-ComputingFinal.pptx
Market Analysis -202507- Wind-Solar+Hybrid+Street+Lights+for+the+North+Amer...

Data Redundancy & Update Anomalies

  • 1. Data Redundancy & Update Anomalies Made by Jenish Patel Kalpesh Patel Kaval Patel
  • 2.  A major aim of relational database design is to group attribute into relations to minimize data redundancy and thereby reduce the file storage space required by the implemented base relations.
  • 3. Data redundancy  Data redundancy is a condition created within a database or data storage technology in which the same piece of data is held in two separate places.
  • 4. Data redundancy  Let’s consider following three relations :  Staff(Staff_no,Sname,Position,Salary,Branch_no)  Branch(Branch_no,Baddress)  Staffbranch(Staff_no,Sname,Position,Salary,Branch_no,Baddress) The primary keys are underlined.
  • 5.  These relations contain the data given below: 1) Staff Staff_no Sname Position Salary Branch_no S1 John Manager 10000 B005 S2 Ann Assistant 5000 B003 S3 Suhas Supervisor 7000 B007 S4 Julie Assistant 5000 B007 S5 Mary Assistant 5000 B005
  • 6. 2) Branch 3) Staffbranch Branch_no Baddress B005 22 deccan, Pune. B003 10 bandra, Mumbai. B007 32 Main st, Nasik. Staff_no Sname Position Salary Branch_no Baddress S1 John Manager 10000 B005 22 deccan, Pune. S2 Ann Assistant 5000 B003 10 bandra, Mumbai. S3 Suhas Supervisor 7000 B007 32 Main st, Nasik. S4 Julie Assistant 5000 B007 32 Main st, Nasik. S5 Mary Assistant 5000 B005 22 deccan, Pune.
  • 7.  In Staffbranch relation there is redundant data.  Branch address is repeated for every member of staff located at that branch.  In constant, the branch detail appear only once for each branch in the Branch relation.  And only the Brench_no is repeated in the Staff relation.
  • 8.  Relations that have redundant data have problems called Update Anomalies, which are classified as: 1. Insertion anomalies 2. Deletion anomalies 3. Modification anomalies
  • 9. Insertion anomalies There are two main types of insertion anomalies: i. To insert the detail of new staff located at the branch number B007, we must enter the correct detail od branch No. B007 in other tuple in Staffbranch relation. But table (2) doesn't suffer from this inconsistency. ii. To insert detail of new branch that currently has no staff into Staffbranch relation, it is necessary to enter nulls into attributes for Staff, such as Staff_no. But Staff_no violates integrity and is not allowed. The design of relations shows in table(2) avoid this problem because branch details are entered in Branch relation separately from the Staff detail.
  • 10. Deletion anomalies  If only one staff is working at a branch, and if that staff’s information is deleted, then branch details are also lost, from the database.  For example, if Staff_no S2’s record is deleted, the branch information of Branch_no B003 is also lost. The design of the relations in table(2) avoid this problem, because branch tuples stored separately from Staff tuple and attribute and attribute Branch_no relates two relations.
  • 11. Modification anomalies  If we want to change the value of one of the attributes of a particular branch in the Staffbranch relation.  For example, the address for branch No. B003, we must update tuples of all staff located at the branch. If this modification is not carried out, the database relation will become inconsistent.
  • 12. How To Avoid Anomalies??  The use of normalization  The goal of the normalization process is to define relations  So that each relation is about one kind of thing.  This seems like a reasonable condition, given the problems that it prevents
  • 14. How Normalization works??  If you know a customer id, then you know the person's name and address.  If you know a stock identifier, then you know its current price and most recent dividend.  Finally, for any pairing of a customer id and a stock identifier, you know how many shares that person owns of that stock
  • 15. QUESTIONS ARE GUARANTEED IN LIFE BUT ANSWERS ARE NOT…!! ANY QUESTIONS????