CHAPTER 3.2 Normalization
CHAPTER 3.2 Normalization
Chapter 3 part ii -3
Fully Functional dependency: let a relation R contains a set
of attributes (ABCD) and (ABC) determines D.
ABCD, to be Fully Functional Dependent:
D cannot depends on any subset of ABC.
That means:-
BCD BC,C,A are subset of ABC, so it is not possible
CD in case of FFD. Because BC,C,A cannot determines
AD D.
Chapter 3 part ii -4
…cont’d
Example: Attributes of a relation
IdStd Name IdInstr Grade
S1 Chala I1 A
s2 Lati I2 B
Chapter 3 part ii -5
Transitive Dependent
• Consider attributes A, B and C
Where AB and BC
If the above FD are transitive, also have the FD
AC.
C is transitively dependent on A only through B.
Example: EmpNumDeptNum
EmpNumEmpEmail
DeptNumDeptName
then EmpNumDeptName
because EmplNum is indirectly determines DeptName through
DeptNum.
Chapter 3 part ii -6
…Cont’d
Chapter 3 part ii -7
Trival and Non-trival FD
• Let relation R contains a set of attributes (title, year, title) and
title, year title
An FD where the right hand side is contained with the left
hand side called trival FD.
If there a least one element on the right hand side that is not
contained in the left hand side, it is called non-trival FD.
Chapter 3 part ii -8
3.2.2 Normal Forms
3.1 Normalization of Relations
Normalization:
• The process of decomposing unsatisfactory "bad" relations by
breaking up their attributes into smaller relations.
• To reduce data redundancy.
• Normal forms are defined that do not have certain types of
dependency.
• Redundancy is expressed in terms of dependencies.
Data Redundancy :
• Data redundancy is when the same piece of data is held in
two separate places in the same table.
• Redundant data can be determined by other data in the DB.
• this data redundant leads to various problems:
INSERT anomalies
UPDATE anomalies
DELETE anomalies
Consider the relation:
EMP_PROJ ( Emp#, Proj#, Ename, Pname, No_hours)
b) 2NF normalization
a)
b)