Professional Documents
Culture Documents
1.DBMS Compressed
1.DBMS Compressed
cOR not Fal (a ebase presowed) fe The Decomposition ta Loslesé and) new ~ FD [ae a. DE ci STIGN Example 4 ’ See OR eRe R (ABCDEG) | FEL AB—< , ACB ADE Bp cf, E 3G} D: (ABC, ABE -FG) AGCDE EG) tow ABT -faB,c,0,, Now, Efe ag} *. ABSc 1% posse > The decomposition iA loseless 8, (AGOE) REG)raecom portion ta lone ar “and Depercensy rae ‘ oMposmrion Example 5 » “cor! Fue ee oon) R, i (OE). CDE , DE) He (rcp) (be) ecto AecD k, (DE) pre OE” 5 2B De p2pr | E 0X et fe) (G)>P- “. polg- A>eed ye e> ‘ how Ats ARCPE D aoe + Bc 30 BB s DE ct CDE bie pe (Bc)'= Peve | (Bp)'= BE | (€p)"= coe (By! i sf Sux pot Includebecuase ‘A’ Haelly Pye jenive every @)t AB, AC; AD wil deaive atl Attributes Go)! Ahir vious! ) thing the Obviously | are) they wil) become SKA. “The decomposition Lose ss and) dependency presenving.ale R(ABCDEG) ee a SA, ERG} Fh Aesc, ace, ADE ‘BAD, Be > (48,2, Anpe, EG) & ~B Be AGDE EG) ee s/ ABE Neo BI feo} Bis not the Heyoh AC 2 The decompo sHion 18 Lossy decorn postion 42. FIRST NoRmAL FORM The process of Removing the Redlands ip Nowmali zation pa ai fee =7 000 uttimole aim ts to Reduce ata toPeNE tt, hot by the ime yee convent the table Toto Rone focre one S) be any Redunchrey (Redindores. Oo”) (> INF > INF aN tenp 18 Known | | => 1NE 7axyh hed the table has to be Flat. = By dlefaut Eveny Relational Nalarawe en ae . tin Firat Nowmod famHivaluec and Comporite valicraste allowed in ANF . OND NORMAL FORM INTRODUCTION pit wp assume Ce have a table having attibules ACC and jhe functional dependenctes thay ane aliawJose ABI /B5C ano, ABC AEA Bc Ble Bc | WIth one allaibule, Key ia nol posate Gis & Ry with 2 atti bwes GE (ave) .. @nyhos the copacily to become Cardlidade Hey now, AR > pay albal AP, (Comstnation) Can delemine ce Bocts gs ay that BC dixeif can detewnine'¢ UrQucly '> The 2np ays that if your cardidate key ie cantal ning moethan cre ott bute then a pool of the dey Ahould rot determine anything ehe- > 2Np 18 bated on fall Functor Dependency a pootiol cependeney ielourd Apor of the x clelenmines Ome thing) This tabe iz Nok WwW 2Np beaunse thee 18 potted dependency (Bc) in the cardidale Key (839) 7O ux should -liminak: Fextal Fay | frontal deperdterey a Ape Z a] FE] —» Bt Be JP [BacAk tt toncleae areas ce Ea RBC Rat | FD preserving.R@ecp) = Po: f4asc, gop} whol fk He highes Nowenal foun Aliated? > By defpudt Brow Relodion si) be fn INF : => Now find ali the candicde Keys ALA BE GD 2. AB) 18 the candidal: her 43% ABCD Now, the thee altri bute Candidate Kuyp core. possible and they should not contain (AB) ih they Include then twill become epee: (ac! = (Aco) (eco) (acpy (Ae) > aeco E50 ys prottial Pxperdeney Now, find ata me ED RBep) ps R (ancn) SS woh Ba a* 5 Rien) RGD) JZ Rerpalng ue inserted sothad we shod} A] : + have fome Common pou ABJc 8D FD preserving too él Loskss decomposition » liesNF ExAmpte 2 ve paw COEPaNT RD) ABC BoE EF candidate Kay= ABO: AD GH Avi (Avo) (aecoe rans) Wot eres AD > Gill ‘ a eae pooitiol Dependene ABVC New, find ai the closes of cil paaticd Dependencies (find clorarca oh left hand Aide) and by to acate a new table by tacing aunoyy All the altsibubes which ose deermined by Auch dependencies Gey" Cavey (es) (ence) ANT 06,05) Rado Ef Gus) R@ Bdoe -) RAG Abe ath ied ERE oo ATT RRR Oe N27 AY (4,5) oe | ae PA AST 46 2NE Example 3 R(agepe 5 Fila | Candidate Key = (AC) BBE cp} ig ua portal clepenclencies amie AB c>D Now, at {Ace} ct fe,o} Asn RA Pe of) ie sees gin ore eal \noo, if He cantidale key foro fabe Isa Alpgle allat bale Hhol is the only candidate +ey then the Relation iS In and NE, $9. THIRO NORMAL FoRM INTRODUCTION SNF2 NO Transitive Depenclencios Transitive Dependency: Non foie allsibute Transitively ckrencing Nhe ye ‘ 4 Ree) 1 Fo: [a 56 Bc} eK: {A} > No poovad bependenc ire. | rowee Cardidak { bey | “patme allsibute The allvibale uchich f8 2 pot gh flon- prime atttbale! The all sitube whichis Nota port of the bey. ne Candidale A>B Some Ga Transitive Dependency Now, Bt {ec} e (aBé) al ie Ge iesenion Be Az Leskas Necam por Hon 48. SNF Exempe 4 R(Aec DE) ro-fagse ,B>p, 08 } ck= AB) now. peouial depen dercies ane BoD = {2,0} RIA we oe) Ab-9epe is the Panattive Dependency retent th table gop | 2 Nag Dt fret rR (B02) Ee PH ASA a BP NE AB =< 44. 3NF EXAMPLE 2 R(ARC) po: {AB><, c=at Now, Candidale bey = (B)= KO Now 7 {5} ; (Ap) + {AbCh~ = candidole Keys (ecyt {aca} oc eo (ap) @) | + Alladie Primcattst oes VY OV ENE cre fpotal deperdency= posite-Key > Non prime altsbule | 1 > pitme alistbue pelos ime alttule C frie ols bute Hoe Cra ie nol poottial clependeney he curate a 2 \eSq) % rot fortial dependency Ea ROGCDEP) ck: ABC A—=>D = portal dependency. The en ABC ‘ Note Boc tial dependenciesSntihe Ghee dale there eneuno poortial cpendencics pea 18 ny Be Sane tive cepencteney g Non bitme altibwe > Nonprime oltathwes 4 : f a Reo Pre — * Seabee 2} Non ptm Alby bal: =aleals | attatbules _ DOE Rare pe F) > Ep eee } Tanai tive Dependencies Boc “ee Prot Tranathve dependency 7-The above Reblion cloernot contain Tanzilive dependency ©) wt. The Relation tin NF SO: FORMEL OE FINITION or \ A Retdiom) schema
isin 2NF only cveny Non Leivial FD xy 7 | eTthey yx f oy ». hich : a the following iS albwef in BNF f , © 2) proper subse o} wa Aupotey % ¥ iS a patwealtvibute Cle > Neon prime Charkal dependency ) ©) Non- prime 5 Aon- Ma C Rensitivye drperde ney) ) Proper scrlact ayo +Nonprime > Nonprtme Giacaltve dependeney) AY Popes Fabs cb Ob CK = proper Auosel of Sthenan Gree pop) val {yen cord: dade Bed= (aay Cawsey ’ ) now @8)> (ABECDE).”. @p) 18 the candidade hey . Now, A>FC eters the postal dependencter won A fat Bt foe hoo ,
88. Geng Example’ @)
Rate) FLaasd 6} i
> The candidale Hey. A ye (Add)
at fat
~ @By- fac} (AB) Cac) ane candidate Keys > MRe
; C- faeny Coe Prime cttt hubs,
1 +
6. Thene ante partial dependencies in the table
| a t rs
Hc. Th 4ae ts In BNp beatase the Cardidal tay Conaing an
f Ahe allsibutes (All the atibles in the Rebstion are fame
| al tribe)
'
Now, Acc to the CONF the Lis shoddbe Superboy
> ap)" frre}
S c fc 6} Nol eipenten
> Nee :
‘ '
Now), Age
va Losieas Decom
> Ac ce g
FO +a maa
cop a im (ost)
54. Bene Exam pte iL
R Benes Guts)
F:Gesc, Adve, BF, FOGH, bo73)
carclidale bey= CABO (ancbe Ex 79) |
Now. GB)" GBC PGHDTTE) SAB ame only te prime attsbue?RG@ocpepGuT gs) :
ae
R@orts) aR (Ban) R(ABe) > No POs => en
A> DE Bop ABC
ing anh ae a
TD TD (ree)
AB Ac
re
Be oe wom) (6A) (Fe4) Tn BNF
GG)
Aspe pSty Oop FosH |
STe check BONE definition every LHS ofthe depen denery afpticable |
Pa tele should be a Siperitey,
2 The Relations thal cue gt wre
' }
RCAor) | eg, (ora) 8 (OF) RC pou) | Rsaee)
A>DE D>2>Ty BaF |) poan | AB2c Benp |
Lape} ] o fous} Bi feel pt Frou! At fase} |
A=sk O=Sk Bese Fé ABE Sk
oe
@rdi date toy - C aa (aneSE fans 3)
Bee G8) (Age DEP alias)_an) cence ay
Sn. Bore prlme AtebulerA > At Jraura}
B* fener}
Poo Gop, isthe postal dependency >et fenery
ui
A>2GH Bap 1s post be ,
Now, (bebe fan 13)
4 Gooch) |G curs) | RGEC?
(and PDRCABCOEP Git a)
AGH . PREP
A>GH G>D ABZC
GS Gt yp |
Now, ee AB><
fas Qs) (4anr) SEF BO
Wty Asm Dorp BSD
= The tables ane 9) W153
AGT
3) DE F mein BONE
4) @o
s)AaC
86. BENF Example 4+
Aialis.
D R(acce) FO= {ABE , B35}
Candidate Hey (48)2 (ands)
UE {CABcD} Ga) 18 the condistale tay
d
Nous, There ade no pantial dependencie,
Now, PBCSD isthe Tranihve deperceney , Be in Nola Supa hey
ABCD
Bcb Aec
| Mp and Bene
Besp 4B
53 BENE Examples
a A
R(mBcr) FD'fa>8, cp} ce: fac] Vase pine edt bales
ABCD
“poi deperchny: oe
e320 [row at fae}
°o En ay
on c™- fe,0} AB
] np (ASBBENE ExAmple -¢
_— —— -
“R:GBPL PT) Prof pop 7 SL Aso}
Garclidale hey= CARY: Caupipt) >). Geer,
{eK=a5 ‘4
B—>pT | pt (pad
ADD ere
po, pai! Dependencies =
R(ABotpT)
forms
RCAD) REPL RAB)
ASD B>pT
Se vst) ,
sk ree
3. BENE Exarmetf 3
Rérecre) — Fofa sec ,co-3E, Rap £7] Carch date Hey = Gaur, co,
Re}
All the ttibules ane frtme
‘ => SNE ‘
PESTO check wheihen the Relation % tn BENE check the Sandieral,
Orendercies ard find whether the LIE 18 a Buper Key er not
Ampe > at. (agcoE) >A is Sk
— P5E Ss Kc0)T peas)? COIs pocce
es 2 (B)4 (8,0) => Nal Sk nn hare
2 ©) (e,n,Qap)= FIRS Bop A>Be
EAABCE
B=p Asie FeNE
E> A0c 4
Pic SAE
S) BNF Examples- pratt AND 62- PARI?
Recep)
tofrasc > DA}
> candidate Key {ar} Foor 2. @e®)L0R ax candidate toys.
I> priral dependencies are Absent - Therhore the relation 721 2Np
% Nansitive depencleneler adie notthene ord ‘p' 7% not Aare
All proeaie
P Ter RENE the Lite shold alinys bea Zupen bey,and hee
‘Dia wot Super Key Innsn
Ptfpat
Aco
loaders Detempo sition
DA
BD
PaBIaNGe (GB) Cac’ - cacy '
Ronp (2
ae ae (B09. (epnc) > BD Sc
Moles) Or On ay nyt. Goa)
Now, find if ABSco ts frtaved uxteg pa and bo3c,
F > @A)™ (aa) ABSco is val prevewed.
4
Sie ve
1 Depeadeneay presaving failed.Example dy
fase, BaA,B><, ca}
(tae))
Bar hs y= “Ge Dees) -
poe) At. fa pep}
et | aodidets diye
See ot ent nx
Dd. fo}
how Bare pime allbibiles + Now, pasta) dependencienore nol press
Conly Srgie on
cke
Now fer 3NF check the tis, LHS mut be o Aaper Key ov
dhe Ris Ahould be a fate alistbule to (SO) Voe'a
F
Not Sic Nok prime
Now, cb fev} atts bute i
R(ARcr)
f ais
4
R,CeD) | R (ABE) loss aud 1P Preserving
| * A>B~
E50] «a pana seend Ben .
Np Gatinia) SF BSC
pe es
Bene
AND 65. PART- 2
&. BNF - ExAMpLE 10 pert 4 AND 6S P. 2
R(agepe) Foi fas 2c, ¢30,07F ea}
wi ron
Candidate ey= ( yt, (ABtBe)
vi tel Nee ae): [asene] An the attebulet
(e)"- foc0,c,a} are pre atin
@)* Sere nc} | ap isin 3NE
(8). foe,n,c Dh eel ¢ aae
For Benp, very Lie of the functional Dependency abcul
pained Q .
AB->e -y AB(SK) |
Beh Now, ct (eneA)
DE (coco uot sic's 3
Esa
ABceE
i i. ar |
(oe A) €9)) -» adding &
( § a
>» ; por [cop ABC) tone
Not ak