Professional Documents
Culture Documents
Objective of Normalization
To free relations from undesirable
insertion ,deletion,update anomalies.
To remove inconsistencies
Normalization of data can be defined
as a process during which redundant
relation schemas are decomposed by
breaking up their attributes into smaller
relation schemas that possess desirable
properties.
Faculty Name
Course_code
harish
CSE301
CSE316
CSE501
Pardeep
CSE302
CSE316
CSE101
RAJ
CSE402
CSE101
Course_code
Harish
Harish
Harish
CSE301
CSE316
CSE501
Pardeep
Pardeep
Pardeep
CSE302
CSE316
CSE101
Raj
Raj
CSE402
CSE101
Teacher
Lab_no
Lab_capacity
CSE301
ANIL
33-301
30
CSE304
AMIT
33-302
28
CSE316
SUMIT
33-303
32
CSE101
NIKHIL
33-304
30
CSE501
RAHUL
33-305
28
2.Lab_course Lab_no
3.Lab_course Lab_capacity
1 & 2 dependencies exist but 3 does not exist.
As lab_capacity is determined from lab_no ,not
from lab_course.
So this relation is not in 2NF Becoz non-primary
attribute is not fully functionally dependent on
the primary key.
To make it in 2NF,decompose it
into two relations
Lab_course teacher
Lab_course Lab_no
Lab_course
Teacher
Lab_no
CSE301
ANIL
33-301
CSE304
AMIT
33-302
CSE316
SUMIT
33-303
CSE101
NIKHIL
33-304
CSE501
RAHUL
33-305
Lab_noLab_capacity
Lab_no
Lab_capacity
33-301
30
33-302
28
33-303
32
33-304
30
33-305
28
Game
Fee
Cricket
200
Tennis
300
Football
100
Cricket
200
Hockey
150
Rollnogamefee
Student _game
Rollno
Game
Game
Fee
Cricket
Cricket
200
Tennis
Tennis
300
Football
Football
100
Cricket
Hockey
150
hockey
Eg:
RegistrationNo,sectionNocourse_name
SectionNo ,course_IDfaculty_name
Language
Skill
101
English
Teaching
101
Hindi
Singing
101
Punjabi
Conversation
202
English
Singing
202
Hindi
teaching
Here both employees know more than one language & also have
More than one skill.thus multivalued dependency exists.
Emp_id Language
Emp_idskill
Here, language & skill are dependent becoz for each skill a
specific language is used.
Thus it is in 4NF & does not suffer from any anomaly.
Language
Skill
101
English
Teaching
101
Hindi
Conversation
101
English
Conversation
101
Hindi
Teaching
202
English
Singing
202
Hindi
teaching
Here both employees know more than one language & also have
More than one skill.thus multivalued dependency exists.
Emp_id Language
Emp_idskill
Here, language & skill are independent becoz for each skill ,
not a specific language is used.
Thus it is NOT in 4NF & sufferS from DELETE & UPDATE anomaly.
Emp_skill
Emp_id
language
Emp_id
skill
101
English
101
Teaching
101
Hindi
101
Conversation
202
English
202
Singing
202
hindi
202
teaching
Company
Product_name
Suneet
ABC
NUT
Suneet
ABC
Screw
Suneet
CDE
Bolt
Raj
ABC
bolt
Company
Suneet
ABC
Suneet
CDE
Raj
ABC
AGENT
PRODUCT_nam
e
Suneet
Nut
Suneet
Screw
Suneet
Bolt
Raj
bolt
Now redundancy has been eliminated but the information about which
Make which products & which of these products thet supply to which a
has been lost.
Company
Product_name
Suneet
ABC
Nut
Suneet
ABC
Screw
Suneet
ABC
Bolt*
suneet
CDE
Nut*
suneet
CDE
Screw*
suneet
CDE
bolt
raj
ABC
bolt
Company
Product_name
ABC
Nut
ABC
screw
ABC
bolt
CDE
bolt
Company
Product_name
suneet
ABC
nut
suneet
ABC
screw
suneet
ABC
Bolt*
suneet
CDE
bolt
raj
ABC
bolt