The document discusses database normalization and different normal forms. It defines normalization as removing redundant data to improve storage efficiency and integrity. It outlines Edgar Codd's introduction of normalization and the first three normal forms he proposed: 1NF, 2NF, 3NF. It also discusses Boyce-Codd Normal Form and defines the differences between 3NF and BCNF. Examples are provided to illustrate the different normal forms.
Overview of normalization; history of terms; reasons for use; aims to minimize data redundancy. Development of normalization forms by E.F. Codd; introduction of 1NF, 2NF, 3NF, and BCNF.
Definition of 1NF; rules for atomic attributes; prohibition of multivalued attributes.
Definition of 2NF; must be in 1NF without partial dependencies; example of partial dependency.
Definition of 3NF; conditions related to non-prime attribute dependencies; example using student data.
Definition of BCNF; must be in 3NF; stricter conditions on determinants compared to 3NF.
Example showing faculty data; breakdown of relations between faculty attributes and departments.
Index
Normalization andhistory of norm…
Why we do normalization..
How many normal form..
(1NF) and (2NF) with example…
(3NF) and (BCNF) with example..
Difference between 3NF and BCNF..
--------------------------******----------------------
3.
Normalization
Normalization is theprocess of removing
redundant data from tabels into improve
storage efficiency and data integrity………
This process takes a relation schema through a
series of tests to certify wether it satisfies a
certain normal forms………..
4.
History of normalization
Edgar.F codd, the inventor of the relational
model,introduced the concept of
normalization..
The first normal form(1NF)was proposed by
codd in 1970…
Codd went on to define second normal
form(2NF) and third normal form (3NF) in
1971.
To eliminate some anomalies in (3NF) the
stronger version of 3NF is called“BCNF” was
proposed by “Boyce and Codd”…
5.
Why we donormalization?
It is the process of analyzing the given
relation schema based on their functional
dependencies and primary keys to achieve the
disiarable properties of.
It is used to minimizing data redundancy.
It is used to minimizing deletion,insertion and
updation anomalies.
6.
Sid. s.name c.idc.name f.id f.Name
S1 A C1 C F1 X
S2 A C1 C F1 X
S3 A C1 C F1 X
S4 B C2 C++ F2 Y
S.id s.name c.id
S1 A C1
S2 A C1
S3 A C1
s4 B C2
c.id c.name f.id f.name
C1 C F1 X
C2 C++ F2 Y
7.
How Many normalform?
Initially codd proposed three normal form,
which he called first,second and third normal
forms.
A stronger defination of third normal form is
called Boyce-codd normal form(BCNF),was
proposed later by Boyce-Codd.
Later fourth and fifth normal form were
proposed.
8.
First normal form.
A Relation schema R is in 1NF if the domain of
all attributes of R is atomic….
A Domain is atomic if element of the domain
are considered to be indivitual units….
All value for a given attribute must be of the
same type….
compound attribute is not allowed in first
normal form….
Each attribute name must be unique …..
What is atomic value?
9.
Person Id NamePhone num.
1 Rajat 7489
9054
7645
2 Megha 9032
Person Id Phone num. Name
1 7489 Rajat
1 9054 Rajat
1 7645 Rajat
2 9032 Megha
Multivalued attribute is not allowed in first normal
form…….
10.
Person id Name
1Rajat
2 Megha
………… ………
………. ……….
Person id Phone num.
1 7489
1 9054
1 7645
2 9032
11.
Second normal form
Second normal form (2NF) is a normal form
used in database normalization.
2NF was originally organised by E.F.CODD.
A table that is in first normal form(1NF) must
meet additional criteria if it is two qualify for
second normal form.
Second normal forms state that it should meet
all the rules for 1NF and their must be no
partial dependences of any of the coloumns on
the primary key.
12.
What is partialdependency
St.ID Batch
Id
Name Phn
num.
email Batch
time
Start
date
Batch
size
faculty
1 b1 amit 7489-- amit4
@-----
4:30pm 6.05.16 20 Rajat
2 b1 amit ----- ----- ----- ----- ----- -----
3 b2 rajat ----- ----- ----- ----- ----- -----
4 b2 raman ----- ----- ----- ----- ----- -----
Third normal forms
Third normal forms(3NF) is a normal form
used in database normalization.
(3NF) was originally defined by E.F.CODD…
15.
Third normal form…
•Codd’s defination states that a table is in 3NF if and
only if both of the following condition should be
hold.
(i) the relation R (table) is in (2NF)….
(ii) every non prime key attribute of R(Table)
is non –transitively dependent on non
-prime key attribute of R…..
(i.e.)no transitive dependencies….
16.
Rollno. Name Dept.Year Hostel nm.
10 Rajat Physics 1 H1
20 Raman Math 1 H1
30 Rahul Cs. 2 H2
40 Akash IT Dept. 2 H2
50 Megha Commerce 3 H3
17.
Roll no. NameDept. Year
10 Rajat Physics 1
20 Raman Math 1
30 Rahul Cs. 2
40 Akash IT Dept. 2
50 Megha Commerce 3
Year Hostel nm.
1 H1
1 H1
2 H2
2 H2
3 H3
18.
Boyce codd normalform
The official qualification for BCNF are:-
• A table is already in 3NF.
• Atmost one determinant must be superkey in
relation..
Atmost one determinant that are not
superkeys are removed to place in
another table.
19.
The difference between3NF and BCNF
The difference between 3NF and BCNF is that
for a functional dependency A->B ,3NF allows
this dependency in a relation if A is prime key
attribute and B is not a cnadidate key..
Whereas BCNF insists that for this dependency
to remain in a relation B,must be a candidate.