Docsity

Normalization and relational database design, Schemes and Mind Maps of Database Management Systems (DBMS)

Partial preview of the text

Download Normalization and relational database design and more Schemes and Mind Maps Database Management Systems (DBMS) in PDF only on Docsity!

Untt - 3 —_ DBMS. = G. database estan : entrry - Relat onshiip Model & a do K. K. Wagh Institute of Engineering Edu, & Research / Polytechnic, Nashik - 3 Relatfona) Odtaburyt, Sestans ee ——— ~~ * ER Model, ca B “The _entthy ‘elatfonshts mode) 1s a conceptual mode) for desfg ntngg-— Aotabase an 4 —Thts Model repre sents the legteal structure of a databare ,inclucling _— _enttes , there attrfbuses and velatfonship : between them —— *Entty ¢- An obfect that fs stored as data yuch a3 Stent, Company — sAttrfbutes %- Properttes that. .olescfbes ertfifes | such as ee StudentdD=, eompanyNanu. ‘ Zz * Relatfonship /- A connection between . entttes. Fe ER Model: L in : I i el ms = Tenttty TAtt rf but | (Rein tpoahT pi) raed L stony ent ty ; Fey Att, 4 [Oneto One L Weak entity I Dertved. AH, font to may Kulrivalucest A. | MOY fo One | How te deslgn hii Info from Wer, Pic a cube dain & databaye , for4 on physfer} clatabase desya (mdentrg) and external cern Cwlews) - ER dfagrasm mepresenrs the e-R model fn a dato ere motcing them easy » to. convert fnto rrelattons ; ba - Mhese dfagnam Seaves the puwpos of real — wor lol modeling, of objects which mores them menty uh, -ER dfagram does noi need +ho teehatcal eqwiedge, ) OF tras underlying 85M. eet ON ES Cee ee ae paige unas } ie ¥ i 2s Wa 0 a * Scanned with AltaScanner on ; z gq Edu. & Research / Polytechnic, Nashik .3 eh Ry, > K. K. Wagh Institute of Engineerin: r hjp making Compe “They vAsually model data and ffs velartanship making Compley systems easter “ty andersfand, * EAH 2 7 a — —AN entfhy represents a teal wortd data obfeck, concept ot thing ee about whfch dara fs. stored fn a ‘datubare ee ~dt acts as @ burldfng “bloch of & dabase a -—Tables fn welational datoboge ceprejents there entftfes e. - AN entry refers fo an tnolfviduo) wet of enttty type , od _the___colleetion of au venti He) of parnttuulon type fs a __enlled —_enttty set - ; es -For ex. €4 fs shaders an antity of entfty type 's tudlbnt! - and group of al) xfudents cold enttty set - os “Types of — Entity ¢ - , i es U1) Strong‘ entthy ¢ - ME bs ah ee 2H fsa type of entity that has a bey attsfbutes: that-cay —untguoly Fdenttty en tnstance of entfty a 3 st yong entity does not depend on any ather entity oF the schema oe sea : : . - dt has prfmamy rey thet ensyres UNPguness and ez ~weprexented by reetangle z ci) Wear enitty: cannot be untqutly fdenttfted by tty owh, © __ = setrong enttht to be fderdifid aitifhuits alone. 3 depends on 4 J LA weak entily’ laenetee represented’ | by | & double Teceaye, __ Zp partid parr ofawebunh enbtty fesateva tote] as He weakens ‘ber’ weabh 4 wtnn » enttty type called * E te aeat FYING melotionswp. A by double dlamons Ee ae at. Scanned with AltaScanner > } 1 +wo 2 set pa E 2 rt | pa } f | She. “ae am ey ee wet Prot let ISk Line ewes ‘tun no. Of 7 0 entity get ve 10. ) } Set QS ¢andfnal hey entity of e€ac can tape yavae a4 the camdfnality ts | one ? ) mabe can Mammy one Femorl e +] mate can more{ one male, Rete Pe -A— a st | ARES = ] [ 2 4 > /Femoule jms —e mat (ee Sh 2 ae - e fo MOM i SJ A , thas 5 entity ef can be velat to nan =i [ meric if f \ Departming Scanned with AltaScanner ey I Or: Zz is : e Me), > K. K. Wagh institute of Engineering Edu. & Research / Polytechnic, Nashik - 3 a4 ony to0ne “fe “many fe one ae ban 2g ie * — phen enttios Tes $n one “enttty 8 set Can tube part only 90 ieee 9 ond the entities fn sther entfty. ser take pantt more '} Man. once fn rrelatfon ship SOK ust oe ts Many PO or ~] sutgean ns 4) Many fo many ae ; es - When enfties fy all enifty sets con ke part more a a4 onee fh +H welattonship aaa. Is maw fo many ° . : lo cases areal ET cee Coane La E ae errr consératats,, 2-. f5 apptfed to the entity ea tee 7 Te +ne “welatonshi p sets ae a (ng 4n (a) Pa Total Participation ¢- ach entity tn the entfty seb must : = . de pantispate tn the -vrelaHonship. + each student must enroll fn ga course then the partt ofp ott on of student spf! be totes, __ ‘= weseted by dounte line 1 3 Tae a ‘3 aie 16 A a fag ar 2 hfe ob) ‘Parttol Partfefpation *- There enHty etn me entfty set yoy ate mm the relgttenship set. per, dfac m Nor _paurticlp wa oe some ¢ coumges ane not cnlled by any of the Wfildenty —— fn oULTFe uth be apt tol then me pontiefpetice Bp UES: ai See Oe ee ci a Scanned with AltaScanner 2S uy , Nashik - 3 « SEEDS > K. K. Wagh Institute of Engineering Edu. & Research / Polytechnic, Specfalizatfon * —_ —— wie iy) specfaltzarfon an “enttty ts. ‘dpveded_ tn to sub entttfes ba - 70, here _ tH me rts Characteristics. fs 4 1% top down appTeach 7 more ower eves hfgher- level entfty ff: 5 Specfaltzed — into two OF = enviHes- : ieee Es ee ee ag eal AT a and thhs asta y > entity elopew , Testeret. =n 8 a 4ht: replauee fun “ts specfaltred fn fnto develop .. : sone E-NAME , E-SAL ‘etc, become a0 rn thes Case “~wommen a astT we ree = part of hgh or hor entity and _apecfalfzed attr. [fhe Tes- TYPE become port. PF O spectalized ent ty (TESTER) oy # Agget 140: aston + Sate ts not capable of representing tne wejatrans'ip -An ER 2 dfa.g ran = - beween an_enttty and a vrelattonship which wis be. amequ rest fo Some genanfos Ls ss aan tom cases a erelattons hip with fts aT TAS 7 ie -enttttes fs aqqwegated tito a higher-level enttty = 2 ~ Aggrregatfon safAwen abstractton though which we can mep resent velatfonships 45 hfgher - Pat entity sets. Scanned with AltaScanner K. K. Wagh Institute of Engineering Edu & Research / Polyte Po \ i Roe ag =a fa 0 7 - — —_—— ac chnic, Nesh' Popa a < REQUIRES _ ib E. [ Macnané ey| | pemphitee working on a profeck may weqatat gore mahi, so ‘require relarfonshp fs needed |: bet melatfons éep | = ‘wlombs Por! and entry ‘machinory! | ‘ generalfeatton | Specfal Fzatfon as as Certangie), | # Aggregation — vectangulam box around relate nshép. | Mutt - valued SAAR AES = = = Derfved attt. — 7 for ex. Scanned with AltaScanner ar in| eorarmnshlp of an «RO one sfde dy the fore sy fFlace Me primary bey of oT u wal Department (Depted , Deptname ) } EM ploy ¢ tmpr0 »Name , Salam | = v 1/ Pol Relathon snfy Department 1 2 N Employee Deportmer r( DeprED PRIMARY REY, Deptttameé VARCHAR: Employte ( EmpzD PRIMARY LFF Name | VARCHAR: Salary INT” Deptzo Referens depastment ( pept#d), ). 3) Many to one (N21) Relatfonsre. Thts fs sfmply reverse of IN. -The N-sfde must contafn Me forefgn trey veferenting i si Stitute of Engineer E™. pook( BookeD, Title) Publisher ( Pubz? > PusName), Relattonshp Book N-4 Publis het Publ fsher ( PubTD, PRIMARY LEY, 5 Pubnome VARLHAR 4 e- ) Ps el b oa fook ID PRIMARY KEN, i ihe references Publis hort PubsDp) aan enema Scanned with AltaScanner (2 \e e/OSAAS' K: K. Wagh Institute df Engineering Edu. & Research / Polytechnic, Nashik -3 E EER conversfon to the ‘adie: “amg roms — gis eg oS jue ~ ee =r + [STUDENT a at | ge ke “sTupent (Studenssd. PR, Name, 008) + UNDERGRADUATE ( Studentep PRU PE) 000 _ GRADUATE ~ (StudenteD Pr PROM URES Bt asa Pk , Tie, (vedits) ~ courses (tou (coursetD PR . _dovase FR, pRaMARy REY (StudersaD, (ure?) ENROLL S (StuclenteD FF, ~ proves profesor fr» Name Department). “Tenctes (cour zD_FR » paorestor) FE » PRIMARY kev (ron » cones} “arnoc (enancsO® Gradevait), ~ re a sy es wl ~~ Studenr#D, mer. we Court sd, Bee eS ro 3 GREE PEER ERERERES BRMPECARME@ Puy) OO" Ms I —ra ~~ PREMARY FEW + (StudentrD» Court é?), 3 a | — 9 AROREGN REY [studenttd , Counsesd) a = ROIS (STODENT ZOD, couRSESD) 4 References EN Scanned with AltaScanner UA KK Wagh Institute of Engineering Edu & Research / Polytechnic. Nashik - 3 Normalfzatton 2- Yormalfzatfon 5 a process fn dababase oes gn used fo omgan fe data fn such a way that ft meduce \ redun olan cy and Improves cons fatency en - st ensures that data f5. stored “ef ftcfently © “ond weno = WANELE SSaITY dup! featfon . s Ye i ee . - st fs used 1 yeouce dhovta “redundancy | . same data y cannot be tore fae pulttple_ places. r ~To awe fd —_Frconst'steney problem _ normal fzatton fs useol_ {tt Oceus because af fnsert, o delete and update operatfon. - Sy nocmalt cat” clean and Cid date structure oF ; = databar fs ocrenttol , — = DA fs ued to Mabe dataport Hexfble, ears ond gourale. | — +0 marntat're 6 . Features /# [ Advantages. Fe “- Elfmfnates te data vedundanvy |= “= Ensures data const sitney, 5 “= Simplifies dara Managemtrt igs ta aa = Fmproves. Data bergn . : Be —_Auotds update anamolfes : : ___snsort anamoltes’ ( can't add dota 49 duo to Mieha tet at | “Update anamoltes (data changes meguirt multftpk Update!) “i + petere “anamolfes (duleting a rear remowey usehul toda). — Scanned with AltaScanner % Ferst Nowmal form (4.NF) ‘ -INF ensures thd the wttuecture OF a database table Ps organtz Way trax makes ft easter to manage and quory, —A vetatn & safd to be tn INF ifs AU the atth. contafo only atomic values . * Eaoh column tontafns valued oF a Single type. \, contalo compost fe attr ik -3 "dH does not repped by a PR. “= “Each row fs uatque meaning rt con be faer . if fl you . * There art. no mrepeattng groups oy aera any ae EX. tourses Tab ¢ . a: e Courses rd cat ik. ees mulH valuro attr | _ a a E 2 eat 3 Mm a ‘ Leineesteal L a zb Name Cour sts El - r A Cc, E { 4 Co E 2 € C3 3, M (ey 5 cy M C3 \ ee x second NoTmal form (one). f ‘ _— second Nowmal form fs based on Me concept of fully Functfonaf — —— Dependenty | : se | — ph relatfon fs fh INF fr eNeTy non prrfine att7fbute depends, on + whole ptfmamy key not fust % pawt OF ft: : « Condrtfon for NF. | = | xt whould alaeaoly fn INF. a: -d+ has no pantta) dependences, a «Tt OCU whan, "the prtmary fey fs composrte and onsite. BS non pete atty depends only @n ana pant apie ease —— —_——— Ber Apereesie ire Scanned with AltaScanner AS/a\o K. K. Wagh Institute of Engineering Edu. & Research / Polytechnic, Nashik - 3 Y gne Fipon! A velatton #s tf 83NF when ft fs alvemoly fy second normoa4 Poww md Tt hOS no! transttfye depend enches ~¥t i.e. No non key = attr, depends on anothen pon-Cey asry Wes oveares redunalaney Ond Ppcansistencie ifn Aotabors A—B (A determine) 8) 6>c (BR determing ce) A fs Prd frtotty determines c. throug 16. SN TING +TansttHye dépengeany 6 a * Condftfons Ren SIE -* fs a Supertey }- attr, on Jertnh hand Ste stde le of FD must be un Foueby Pd-entfrtes Sup-Tple fn__tabte) ee bog ~ Y & 4 pate atte. t= every le. of atm, Ser y “eg must be part of a: andidate key. be Ex a _. § Cand —No “Name State county Age ce Bu Amoyra WB Ind H ee. 5 Rhaan _ Hanya Inq 2] uct. 3 maya Home td, L ae Aas @ FdentiAy He candidare ruy €-p. ty { cand No | E Cand - NO —> (AND.Nlame, Gnd no ir 6 ramarry FanIT He aaperato a Sinica “country | ©. Convert velation frto 3NF- a . ae ond velo oie tat al seamen d cine 3) gaol CourF( SHOP; county) sa Scanned with AltaScanner