Data Normalization Techniques Explained
Data Normalization Techniques Explained
Ensuin/Aata
leea
ata ta epea
Normaliaatrom
rblem o hoct
l
Momalizato t becomas dlluult
Ohoutt
olalalaze ,
orheu
hande anol updale the
loas Ynston, Vpdatton and Deletro
ala la
a c
alabad k
hnamd oe vey epunbt
o t Mrmaliz&4
7
SAAdest
Sol SAVame
Alorola
yo Adam
tuden los le
% updo-l 2ddrcs 5/ a
Upclattern namoy
Sudent i o ceche twice o r mre h a r wia
Sncltes4
a-to bG. e have updol
e/ee
olala L
tottlI
l l2ece
e ceme
Csumn ll Lora ,
in Concittent
nam1y Sl yo fat my
(3)Zelet
ana tahp o ragily Ae diops , (
00e ubfelt
Ahen l e l e t e 7hatko0/ etiie tuolent
erd &otl be deleted aloot ort t .
oal'z at o ule
Noxmalizat o tnlle aue. ne lode1nls Monp
mal om
Y s / r maf m
) e Com d Womal 1erm
Thsod Nomal A>xm
Cy) CNA
oluhp nishu
a i g ue
d e r ebe
tu duntt
Age kubett
clam
Aex Bsto/y Matk
Math
Sugst 17
Mats
ahore
Theola0n os nat m
D
, Vany m u o t nSt Lae zhumn
In LhrcA thore han one CslumnCan be
mino
- Ceoate a
Sil plu maly key.
Ke
tuden Age Susyet
Adam
Prete/y
Adex Matl
Maths
alE
dam Maths
h a t the P
n sudent-Psy7elt
I, Tektto
AcLrd 1np
key attubulis aië Shud-PD and fo.
-key atmbulo Stu-Nami
h e Hule, nsw
hurt se dependlenupm
and rMome
arbul
n t On 5 e p7me ey
bot% and any
individua lly
t he Uind tAa Su-lame can be lolentrfred
anod -Name Can be iolented
SudD
Th alled
by 77-ID alepen odent
nst allened 1
whic w
Patial olepe
olpen l n y ,
Sudon
Shhd SD ShulName kfo
Pye Pap) Alame
So Thel e col na paltlal leptndeny
7hrrdA loY mal em (3P
er
er relattom be rinThin l Aldrmal m , |
L mul be 2/A anala Satsy h e t-llcosin
SucdentDetacl
StudID Stu-/a me
udent-Deal
Sud ID ShSuMome Zip
zipCoels
Zip
yCe Codd Norma/ . t
CA Jalus hat
t any non. Aoval Junctrenal clepen deny YA
Ymust(/6e a Supen Rey
1n Ue C e l a t i n Shudin
Stuc/ID u e [Link] Key tae elattm
SudID uN/ame zp
an
2ip üey
n 2enp
hch Confanp Sat Reht on
Ler
RCo,B,c.D)
and 7ol/on alepen olen Ces
bc AD
D B
abrre Lelatrnship u d aliw ad in Bvt
key a AAC
ten ce he unchonal olepenaleny ,A-sD
s T e corl e étronL
e luypeA Ry
B D s o a key
KL and K2.
uod e latum-sh1p
Rla, B,C,D)
RA,C, D) RD, 8
Boyce-Codd Neomal tom (BCNP)
Boyee-Coold rvmal fvm CBC NE) basrd on untroral:
take n t o aceount all Canol'cdale keye
Xpentencras hat
in a Aehhion. a Ae lahon t a b ) wirt only ene
BCNF ,
}s in claoti'cdaL
e l a l i on ase
Tonhe7he a t h a t hey
une
and make
delimnant
Keys. s Z ubulzs e
ellu1bulzs on
n
6utsS s r a gtoup
attir6
defeumin a n t 2/ an
u/yaodinally
alyfuo
oleper dent
dionally olperdnt
attiusule
AShich Some 07hu
ane/ BcN
Normal o
belieen thuad
TAe chosou dtpendney AS9
7or fn chonal
cdpendeney nn
a
sKat m ependenuy
allonat 7hes
thie
nomal Frm /and n' s
the atiitul
pmay ky,
ulatron B',i a / n s idá
That r
BtNf
mta Canodidale key , eeal4 muat be a
elatrn, A
cehna/u ln a
hu depenoleny b
Candidat Key. fom the
Thra
B c is a tonge in BCNA
Thessfere h a t v y guelateoin
monmalGom
,Suh
Momaljemm
h a thrrod Dot reeesailu
r eersaily
a ko n ii in
n N
i not
felatron
a
7henefre
tine
tie
h i ch Con rtnt
Contint
C Shch
NTERVIEn)
Cons'dt a l a trov inteyeiof 7
for
7 aand
n da l t
he aMa ements
delnilev/
compa"y
he nheese lechnital expe a
by
/AIT EEVIEI 7able
INT71ME |TNTVA-ID|KoOMNO
CANDID TE 1/P TNLDAT6
a 1? 19| lo:90
OO ROO
4-Ma-1199
EO01 ROo1
Co0 GO02 Ro0z
Coo3
4-Mey-1999 lo!3
RO02
CO0y A6 May1999| EOO3
1230
nD In BCNP (a Ibrnge,. F
7ha Selation it
e
presence &the lTNTVRI D,
(TNTVRID
hnel Nomal fwm),
du s
is s nbta cardidali ke
, h
D A 7 6 2 eletmin
an
CANDIDATE-ID|-INT 1E /NZTIME
INTVR_JD
AU-May-/999| l0:30
CO02 I1:30 E oD
du-Nay1977|
Coo2 /:30 O02
u-Nay-1999
Cooy 30 E 003
&-May-/99?|
Roo asle
Exampk o De conmpotron
Le duseil
o Kx,y,z) thu Can
elation
RLCy) and Raly)
union Ri ond K
ne Re, wejet
R- ave
4oals Deconpodth en
ole comp oup a tealion h o
Eho1n alc kedun olane by
E Xanmpe
lov Can
Nkon
S20
Canno
Motel NWame
Cab cah
Cangn Canon
20 Nikm 2o9 Nikm
Canun Canom
p odel ame
CaA
Cans
Can)
S20 MROn
Can om
ISD Can
Decompetion
A unctronal drtmpevttren u 4he p rocen b 7
d o n At punctns a n faniZetren n u brupemnd
dilall
Jealt ine and ne ) Vltvels f
Cmeinctro letcubed h g e
n deconposhon, Junctrbmt.
uppcahop
Set &7 thw
detail by a
RConoat
K lonovab
kefation dchinma
h e econpesre on a tw
o mrt
ke 1477o
&chema by R
7he eaTron taltiibuli
epla cio1 a
cu4sez
7hatenth Conta
Schena vh K
ateisuts
include all
and togethuu
im eliminatih
Serme sf the pribme
De compostt on helps inCongielintiet
Sueh as rediinflh ney ,
a d clelipn
anol andslie4.
D e coMpeut on
Deconpeit on.
7ypes&7
hal ate two
D e c o n p o a t r om
LosslessJ0in Decompoit
-16n
ess Detmpoirhon
Lasy DecmpoSHren
Decompoiihon,
L8) Lae leltjonn
(A) DCeY LDe conmpositt¢)
Ki and f z
2e /atrom n
he cecerm) prekfrom yreld
7he lon,
d o c nit
P2
e the joim R and
lest
chuuif peieal 67
L L t t hoee
Comtidethat hwehave l a s l
STUD ENT
attubulis sallno sn ame and depatmenE
STUDENT
i n i wofelaltom
Thes gel/ati en it deconp eNLd no name
and namedept.
Na name Name dpE
RstLNo Sname Dept
Patima
patiml ConnpUTER|
payma ECTRcol
22 Pasimal
lossy leconp osrion, Spui'o us lup lo ale ptnatatid
a u a l om A ) i applhed h e Retate
tn he cle
comfo H on
STU-TInlED
Pauuma
ELECTRCnL
CoMPUTER
P a L p m a
22
pauimal EECTRicaL
222
r
OSIT70
2DECoHP
Lss JoIN
LOss 1n& Ri a n d
Re
Tioin K
»e Hr en sAela he Same
s ame
STUDENT
Rs/LNo Sname Dept
Pauma CoMPUTER
2 2 Pcima
ElECTKICAL
Stunome SHde2
RstLato Sname Dept
RotLAto
PatumalV CoMP OTER
Stu Joinsd
RILAto Snam Dept
Pauma CompUTER
222
priumal ELECTRICAL
Dependeny Phes etvins Decomp oihon (4)
he depende ny p(eouvatie de tonnpoarti in "
anb/huPPy
7Tmmpolid Ae la tron al databaae sohema D n hlh
each
inchnal pendentyXY specihidm
eithu
ppe atead diecy t one o7 7he elatron Aehamas
The
h the de contperled/D or cs ld Le mlenedpn
epenolen cies that aPpeat m Some k
elelron R i cdecompeesd n
A-LA»B, Asc? a n e
wits PB
Ki = (A,B, )
2 Cc,D)
f'-U Sn1B, 9->C,C-D?
So -E
Ard SO
Thuu, 7 hu clecommpostron 2s Aepenolenty eduv
CeComp e0 |-A orn.
theeferencnd zelatron
7asla)
ENo Name Age Dn -fol7
Ank Dro y
as
2 Sncht allatd
Mat
as t
Som v 22 n t
dyhned
2
tast
Souabh| 19 piimay
kuy Dno
u
tLe1,
and
a rer k
Ke latrens haup
Dlocati on
Dno
hrtek
Bhio ant
im
12
Han st
7
66bjectine sincfuson lependentils (
dpenden ciuo
1b vofve 7sA hierathie
dstao )
hat
An EkD CER nolentte.
h c l u s / e n ope
key bases
alco load o
Lassd thao
e n cies a Key
depenol
atlu bul guy
mdulon
all
I abrt Spli
t Kasely hae b10ory Ant
decempoachont
patieipalb
tn hclua
hat
endensywlap
ht pat
tp
hee i þaui
O n DepenclenyCTD
Zbe abitkaty
letR be a stetrin, Vet A B
Ksthifes 7he ID
Sussetu sR& attibutr.
*(D,B 7) 7 prpjéetronc
teRN Nokmnl
FiPTH NoRMAL foRM (PRoJECT TIN
A ulaTion Klatiahu Tht / nermal prm( sNE)
ty
fnpectjoin Nermal t m tPI NE) Y preny
nen-
(a
( Cannst Kane a l0&sles de conpasyho
Inlo ary numbet rna tles, tatlas 6
Tavello
alum&
Band
A cme Vatcu clea nel
Jack Breadbo*
ack Acme
Resusto hunnosheal
wily Vacun hart
Rebusto5
weldy Rsbusto Buadbe
wlly Kobae
mbiella
Louu's m b u 7 e hac
hu
lZn his
n his ease ta Lle pht n
Ban o
oodcttt y
PAodatt
TeduipBnd
ald md
Saleshan
Jack Home
Ja ck aree
Clean e
Vaceumcltantu
N, Lours
Acme
oiley Lout Nmbus
Umbenlla
wil
Lous
Teledcope
Loua
Vaceu
Cleane
B4anol hy hawla
hoduct 7ype by Taauelay balesm4
alman
Branol hoduct pe
Vaccum cle~ne
Acme BusdBex
Acme
Lava lop
Acme
fuunyn? sheau
esus to Vacum cleanu
Rsbrutts
bendbox
Asbusts
Unbentla
Robuols
mbl and
Let us finally summarize the normalization
steps we have discussed so far.
Input Transformation
Relation Output
All Relations Eliminate Relation
variable length record. Remove
lines in table. multi-attribute 1NF
INF Remove dependency of
Relation attribute key. non-key attributes on part of a multi-2NF
2NF Remove dependency of non-key attributes on other non-key3NNF
attributes.
3NF Remove dependency of an attribute of a multi attribute BCNF
attribute of another (overlapping) multi-attribute key
on an
BCNF key.
Remove more than one independent multi-valued 4NF
dependency from relation by splitting relation.
4NF Add one relation
relating attributes with multi-valued5NF
dependency.