Professional Documents
Culture Documents
By
E. Siva Sankari, M.E.,
SL/IT,NEC.
Normalisation
Process of converting a relation to a std form
Process of analyzing the given relation schemas
based on their functional dependencies & primary
keys to achieve the desirable properties of
Minimizing redundancy
Minimizing the insertion, deletion & update
anomalies
Normalisation
a design technique by which
relational database tables are structured in such a
way as to make them invulnerable to certain types
of logical inconsistencies and anomalies.
Normal form
Rulesfor structuring relations that eliminate
anomalies
Anomalies
Update anomaly
Datainconsistency resulting from data
redundancy and partial update
Deletion anomaly
Unintended loss of data due to deletion of
other data
Insertion anomaly
Inability
to add data to the database due to
absence of other data
First normal form(1NF)
A relation schema R is in first normal form(1NF)
if the domains of all attributes of R are atomic.
(A domain is atomic if elements of the domain are
considered to be indivisible units.)
(Atomicity: Each attribute must contain a single value,
not a set of values.)
or
there must be no repeating groups, i.e. no attributes
which occur a different number of times on different
records.
Second normal form(2NF)
A relation schema R is in second normal form(2NF)
R must be in 1NF
if each attribute A in R meets one of the following criteria :
It appears in a candidate key
It is not partially dependent on a candidate key
3NF
Adv- Possible to obtain a 3NF design without
sacrificing a lossless join or dependency
preservation
Disadv – allowing transitive dependencies
force to use null values to represent some of the
possible meaningful relationships among data
items
there is the problem of repetition of information
Comparison of BCNF & 3NF
If we are forced to choose between BCNF and
dependency preservation with 3NF, it is generally
preferable to opt for 3NF.
If we cannot test for dependency preservation
efficiently, we either pay a high penalty in system
performance or risk the integrity of the data in our
database.
Limited amount of redundancy imposed by
transitive dependencies allowed under 3NF is the
lesser evil.
Comparison of BCNF & 3NF