Normalization
Normalization
1NF,2NF,3NF,4NF
Normalization supports
the proposition that a
well-defined database
contains no duplicate
data and keeps
redundant data to an
absolute minimum.
THE NEED FOR NORMALIZATION
Database designers commonly use normalization in
two situations.
The database designer can use normalization to
analyze the relationships among the attributes within
each entity and determine if the structure can be
improved through normalization.
The database designer can use the normalization
process to improve the existing data structure and
create an appropriate database design.
NORMALIZATION
Decomposing improperly structured table is not an
arbitrary process. It is instead a methodical process
you perform by testing each table against a set of
Normal Forms.
Normal Forms: is an algorithm you use to test the
structure of a table.
MODIFICATION ANOMALIES
A constrain placed upon the ability to modify data
in the table that is imposed by the table’s structure.
There are three types of Modification Anomalies:
InsertAnomaly
Deletion Anomaly
Update Anomaly
MODIFICATION ANOMALIES
Insert Anomaly
Exist in a table when there is an unnecessary or
unreasonable constraint placed upon the task id
adding a new record, or when adding a new
record will cause unnecessary or unreasonable data
redundancy.
MODIFICATION ANOMALIES
Insert Anomaly
Cust Item Shipping Newsletter Supplier Supplier Price
Name Address Phone
Alan Xbox one 35 Palm St. Xbox News Microsoft (800) Buy- 250
Smith Miami XBOX
Because data on Customer
Roger Play station 4 47 Campus Play Sony (800) Buy- 300
Banks
and Item are
Rd, Boston station
being stored in Sony
the same table,News you cannot
Evan Xbox one, PS enter
28 a data
Rock Av, for aWholesale
Xbox news, new Item Toll Free 450
Wilson Vita until you have
Denver Play at least one
customer who avail the new
station
news
item.
Alan Play station 4 47 Campus Play Sony (800) Buy- 300
Smith Rd, Boston station Sony
News
MODIFICATION ANOMALIES
Deletion Anomaly
Exists when deleting a record would remove data
not intended for deletion.
MODIFICATION ANOMALIES
Deletion Anomaly
Cust Item Shipping Newsletter Supplier Supplier Price
Name Address Phone
Alan Xbox one 35 Palm St. Xbox News Microsoft (800) Buy- 250
Smith IfMiami
you delete item “Play XBOX
Roger station
Play station 4 47 Campus4”, you
Play have Sony
the (800) Buy- 300
Banks possibility
Rd, Boston of deleting a
station largeSony
News
number of records. You will
Evan Xbox one, PS 28 Rock Av, Xbox news, Wholesale Toll Free 450
be deleting Roger Banks and
Wilson Vita Denver Play
Alan Smithstation
records.
news
Alan Play station 4 47 Campus Play Sony (800) Buy- 300
Smith Rd, Boston station Sony
News
MODIFICATION ANOMALIES
Update Anomaly
Exists when modifying a specific value necessitates
the same modification in other records or tables.
MODIFICATION ANOMALIES
Update Anomaly
Cust Item Shipping Newsletter Supplier Supplier Price
Name Address Phone
Alan Xbox one 35 Palm St. Xbox News Microsoft (800) Buy- 250
Smith Miami XBOX
Roger You
Playhave
stationto4 make changes
47 Campus Playto Sony (800) Buy- 300
Banks two records ifRd, the supplier
Boston station Sony
“Sony” phone number News
Evan decided
Xbox one,to
PSchange their
28 Rock Av, Xbox news, Wholesale Toll Free 450
Wilsonname.Vita Denver Play
station
news
Alan Play station 4 47 Campus Play Sony (800) Buy- 300
Smith Rd, Boston station Sony
News
DEPENDENCY:
The Good, the Bad and the Ugly
Dependency Theory is the field of study comprising
Normalization theory, dependency principles, and
other related choices.
Functional Dependency – the Good
Transitive Dependency – the Bad