Professional Documents
Culture Documents
Normal
Normal
1 3
Normalization
◦ Aims to reduce data redundancy
◦ Redundancy is expressed in terms of dependencies
◦ Normal forms are defined that do not have certain types
of dependency
1 4
Redundancy causes several
anomalies: insert , delete and
update
1 5
Insert Anomaly:We are not able to insert “valid” value
Student
1 6
.
Delete Anomaly: We are not able to perform a delete without losing
some
“valid” information.
Student
1 7
Update Anomaly
1 8
Normalization works through a series of stages called
normal forms:
First normal form (1NF)
Second normal form (2NF)
Third normal form (3NF)
Boyce-Codd normal form(BCNF)
Fourth normal form (4NF)
Fifth normal form (5NF)
1 9
1 10
Functional Dependencies
1 12
First Normal Form (1NF)
Unnormalized form (UNF)
A table that contains one or more repeating groups.
6 lawrence Tina
PG4 1-Sep-99 10-Jun-00 350 CO40 Murphy
St,Glasgow
Tony
Aline 2 Manor Rd,
CR56 PG36 10-Oct-00 1-Dec-01 370 CO93 Shaw
Stewart Glasgow
Tony
5 Novar Dr, Shaw
PG16 1-Nov-02 1-Aug-03 450 CO93
Glasgow
1NF ClientRental relation
we remove the repeating group by entering the appropriate
client data into each row.
Client Rental
ClientNo propertyNo rentStart rentFinish
ClientNo cName CR76 PG4 1-Jul-00 31-Aug-01
CR76 John Kay
CR76 PG16 1-Sep-02 1-Sep-02
CR56 Aline Stewart
CR56 PG4 1-Sep-99 10-Jun-00
CR56 PG36 10-Oct-00 1-Dec-01
CR56 PG16 1-Nov-02 1-Aug-03
PropertyOwner
Transitive dependency
A condition where A, B, and C are attributes of a relation
such that if A B and B C, then C is transitively
dependent on A via B (provided that A is not functionally
dependent on B or C).
.
Third normal form (3NF)
A relation that is in first and second normal form, and in which
no non-primary-key attribute is transitively dependent on the
primary key.
3NF ClientRental relation
Rental
Client
ClientNo propertyNo rentStart rentFinish
CR76 PG4 1-Jul-00 31-Aug-01
ClientNo cName
CR76 PG16 1-Sep-02 1-Sep-02
CR76 John Kay
CR56 PG4 1-Sep-99 10-Jun-00
CR56 Aline Stewart
CR56 PG36 10-Oct-00 1-Dec-01
CR56 PG16 1-Nov-02 1-Aug-03
PropertyOwner Owner
1 20
Fourth Normal Form (4NF)
A relation that is in Boyce-Codd normal form
and contains no nontrivial multi-valued
dependencies.
Join dependency
Describes a type of dependency. For example, for a
relation R with subsets of the attributes of R denoted as
A, B, …, Z, a
relation R satisfies a join dependency if, and only if,
every legal value of R is equal to the join of its
projections on A, B, …, Z.
1 22
1 24