You are on page 1of 14
Course Code MCS-023 Course Title Introduction to Database Management Assignment Number BCA (3)/023/Assignment/2020-21 Maximum Marks 100 Weightage 25% 31 October, 2020 (For July, 2020 Session) 15** April, 2021 (For January, 2021 Session) Last Date of Submission This assignment has six questions carrying a total of 80 marks, Answer all questions. Rest 20 marks are for viva-voce. You may use illustrations and diagrams to enhance your explanations. Please go through the guidelines regai assignments given in the Programme Guide for the format of presentation, Answer to each part of the question should be confined to about 300 words. Qu. (20 Marks) Study online banking system requirements and design an ER diagram for an Online Banking System. List and write the entities, corresponding attributes, relationships and cardinality. Hint: Assumptions can be made wherever necessary. Qu. (10 Marks) Design the Relational Schema for the E-R diagram that you have drawn for part Question 1. The relations must be at least in 2 NF. Perform the following on the relation 1) Enter about 5 sets of meaningful data in each of therelations. b) Identify the domain of various attributes. ¢) Identify the Primary keys of all the relations. 4) Identify the Foreign keys and referential integrity constraints in the relations, @. (10 Marks) (a) “For creating this Online Banking System as shown in Question 1, using a DBMS is better option or file management system.” Justify the statement given above. () Talk to any Database Administrator (DBA) of any good s/w company and try to list all the key responsibilities that he have to handle in the said company. 4. (12 Marks) Given the relational schema: Suppliers (s_id:integer, s_name:string, s_adress:string) Parts (p id:integer, p name:string, p color:string) Catalog (s_id:integer, p_id:integer, p_cost:real) Write SQL statements for the following: (List all the suppliers who supply the part with p_id=32, Gi) List the parts whose colour is BLUE (iii) List those parts which are RED and whose cost is more than Rs.2000/- . (iv) List all the suppliers who are from GUJARAT. 4 Scanned with CamScanner () List all the part_ids, colour, cost from the supplier EZPREX. (vi) List the cost of the part_id=41. Note: Make suitable assumptions, if any. Qs. (10 Marks) Discuss all the file organization techniques with suitable examples. Q6. (6X3=18 Marks) a) Discuss the ACID properties of a database transaction with appropriate ‘examples, b) How are views created and dropped? Explain, how the views are implemented and updated? ¢) Discuss 3-tier architecture with necessary diagram and suggest an example application for the real world domain. Scanned with CamScanner Coalined 7 Grerch ples) Cs itofreraal amou nk) Scanned with CamScanner Date.srcnsnssnnnn Page Non Sea + Cucl men i= — Fielel name pala type | _toashmict | — Dapeng sp — Cask idl int [ Poimeny Key laude im thd table ——__leusk_ name _| vanchaa (too. fGme_of the cuctemor | 4 adds s pueda, 200 Addness eft the custome} ——_|cush-phone | bigint Custere cenlorol dela! fuck en@i) [varchar (ico) | Mal id_of dhe cuclemer| PAN versely (12) | {Cusfomen's Pan ae ——Adbaax no Jo Act bar Pumben oF Ta] Wide of ae istomey'2 dete of bill *toin_ dade dale feustene 5 tb Ubex naire _|_ Vere bay: Fone bey legm vewrare 6x | - “OL enlice bork —____| Fret name [Mala type {Constaint ccoriods fia en online 288s veorael Varchao (32) gin pascsoore) Low orlee Table. account ee ee [Boconiption — accent ao|_biquat | kod Oniiguely iclasli : comment falana tunbes na) ay see ia —_____renng. arte. | te. Acnauatcpeung obo. eee za [sean hey | Table» faanch —_____|Field name [Pala type |canclraink | end — es ry hey |Ongucly tlenli fy each tsorh. —____| beareh—samearchon(o) Kome_ef the baaneh. —____bnaroh-addaeselachtativn ) | Ackd: er: | boa, Scanned with CamScanner —__Inrccage-dale | dade __| |Fielo|_name_|_pala ype | tonctoer int} Beceai elton —\V’en_nome__|vaachar Clo) | Faeyr ley floqinoaesctme fer online techg lmeccag.e __| vaachera (G00) _| cemvice ceed Leamplomts—_. Dale of the ceowce + op. . Design the Relaliona) schoo Len the E-R diagvam thal you have elomon foo paat Question L- The xaletion must be ab | least in oF: Peafirarn the fella athe celabrons:- | Endew Shout Seda of meaningful _dala_in each of the exeladtions : a HL solendify the clamain of versious “erttnita es « cl | Telentify the primary keys of All the -yoladrong.. S| Telenkify the Leigh beye ancl aefexorbiah info sity canchesainds in tho _olAbinns » fins=_a| cater abet 8 sols of rmaningli® olla inom of the lL aola tions i Custorres, rere | coh —_|.addlwese phere no Vitash |asfeslan) Q.bequai| _ga2segggo, | wh, ref 1952] 232 ye Lh 8 +669 3508» Il 25e4 | Racket] i2hox) 64 caipec |_T8 6 96 BUS | |} 982 Ieushi) [sls {200/| 20,nambs| _93ssonsior | E245 | Sand ovp joule Jo93{ 18, kolkAla| Pugg 299359. 4. Rerackion login | Vgew nang |__pascoered a —accamt no Mikeshool. | __ mere ___| OMFSSqSeugsg © 2268956 Fuse LO OM4SISRPU GE Ol" JE 58899 Gez Oiuts Scanned with CamScanner (Date... Page No 4 Relation. pecoub nt» Account no Thee. Concent balance ou tssaéseniss | TCleru 3524 F896 25 ©25g4645Ug5¢6 .| TCICL 43599 S201 .Zh6 — 025996333 HAR | TCI ct ys ve2 6951. 22 Oludgasgagaees | LCTez ya 64 $9335.00. Relation + branch» - —_|hoanok name | Esc Soprch retires! froeoh, plonor. chhawral | Jercr u76¢9| 34, himachal- |g 446% 25669 Pancalla ICTcl ¢7052| §76,.S5mA. Bp662u OR Ra ust i Ecrer Wsség| 64, ote peded| TEsCorureg Sika 4 ICT cr ooe 99 lo? ee aeeecea, b Relatie *paschaak — 1 Bep it omouat-| draneaobinn dado | witdeaw? Gmouel | halano L QUST iu [5/2020 12000 lurseoo 24500 tele4/ 2019. 2oluurn - Zhis kro - Q __| tal eq} 2020-| | auozn. Sesuem 296% 4tuUD O4 [05] 2020+ | ao H0 QE5EEELO Role Linas dannsaedion- Ofe— name Jransactton sch foansticting Around. | pemiven cl Vikas h S8U 4 Loss Sug aysuase Ramesh. 3689 LL Loss (G95 Tuga keops)- S984 ore 3658 $u1996- - Sushil - ZE5E 'Puag SESK Ful oss —————————__ear Scanned with CamScanner (opie. nn Dales Page NO Duss (8) Ten tify ; Ber} 1 Aas= | Ottesthute clomting ome nuke thal. feces wAlueg—ol @ Sield dy pe» Thay ame ured do cons-aaiy | the values alesse yq_2nty particule A Her che de foac _ Lm teble or felune class | They pmariele @ medbod fon enfexcing dada tndeyaity by — twhad-_sdn__beplAcecl on @ ficld Jo a sAleel lig 4 one nOnge aL chico: —_(C)| Telen tify the puimaary Keys of al) the aclAdisas = Aras: Cugda mere custe id i pmimany key. log in lean ame Py: in Bro boy Accenat |-Becod- o's primary fey = renal TFéc 2_paiimibary foy Teexacdtion- Wang. | deamngacdion wa: Poimey por. {SD iaentity the fonetgn rey 4 and _sefeyntar) indog xt In the relalions aa kaya ofomer rave user names Fameign key. Aecaua:f Tk&c + faaeign ety Pie soak Accoual- oo _Firseigin _feory Scanned with CamScanner Woanezolion Acco no.Faariyn hey, SS | Soreng ——|Vstenrime_1_Fortziquy tee Fon creating thie online banking sychern as” chean in Grebe. — ify —BDBMS tc Selker option 1 file = Syclern” Tuctify dhe Slederrank given above. Ansa | According dom Dems belles thag Eile nocag roc | System fere_Online_taaking | Padobacts ef file meinaguwatcysten- —— 8 | pala Redurdancy t= DAlA mudundancy aekarde the duck tlin. | of dala,tek say we ame _ndecqirg dhe dala_ola bank thee. a Acraunt holler has 20 fice ourds = ____ ew | Pala taconsishency i- Mada —meclundarcy leads feat ———._ |-incongicteragy» lel Apke the are example thet ve bee __ | Jaken—absave- 2 Mercere held er bras -leco Accounts aed _s2e —_ Stood the Account hellen'e_édekoest hie fee. —________ iogemerth | Data stroladion:- Because. dala coe _scadperef im _vonious fits, _ | eanel (les are snay be in clferent Soranade, Oodecg neo applicabian —podynams b_wekoivve the. cromapiak dala i : dificult» - © | Leperdency “on Dpplicer|ion—griegainns += Chae. eqs Files zeutof —_ |leacl— Jo—cliarg2._ic_B ppliciedan pegs €—$ 2 | Momictly Bsuec . | Bast —Seeven Ng —— Scanned with CamScanner [oes Data Page Nowufronnse of Dams over Mle managenent system —e | M0 - Redundant Data. * | DxMa__consistencyy ace|_Tikegnity = ¢ 1 Dala_Secomiby : 2 | Dla koning » © | Bale comrsaency- © A i « | Gala Tabegaid 2} acy, _weravenss Scanned with CamScanner TOPIC nnn | Pag9 NO. Bonu] QU. | Gren the gelation? —4che ma 1- |} ———Suppliens Cs id + inlegen rane .shing Ponds Cp ide Linbeger Parana: Sg @ ses “a cAla if: pul inbepon , p— cust oral} be out, yo) able bein eign Lick al) the suppliers soho supply the parck oil sp _pideg, \—Alnsz_| SELECT cupphiens sid >$—ceme,¢—pddorss [FROM sunplicoe, Calaleg (OHERE suppliers, ¢ ail Callers. id HD pid >325 Gii) |List thaw pets ohh ane RED red wahoco med i mare. dha Rs. Qonv —Ars= | SELECT foots .p mid, perme FRO0 _ginde ze parts. paid = colaleg . pic wD p—caloux = QED" - 2 cost >2000 + — (| tice an te sunplions sho ace_Laam _GutAREL fins SELECT s ids rere | FROM supplier t2HERE ¢ adlaecs o | “Goparat’ his tel esearch the supplier 22P REx. —Aw~ | SELECT DIsTincT astsspaid s Pacoloue , Poot FRom |Suppliens_, Ports catalog (9HERE pa = Pants. pri = Calaleg. patd_ Awp Seetatie Ij = CAlalog.¢ icf AND ¢ name = “ez pPREx’ a ee Scanned with CamScanner Page No... anne Dato... Topi. (vi) | Lice the —coct of the paatatd = UI. | —Als=_| S€ecT prsTrvet paces FROM calalag (HERE pr ut; 4 —G4._| Biscuss_al) the file_organiza4 ton techniques sald atta ble 1 revamples- -—Ans= | The Gle is @ colleckion of arecends sing the _paimeny — J Key 52e_c: A Aaess dhe the cpecac|s- Thetepe—ard. | firquency ef acs canbe cleleocsined by the type 2b | file enganization ohrh Ag usaf for A given eof of 4 ecards - ——+* File omqoarznfioa is &_[egica)_olaliorship among samious Decends. This method clefines has Cle yecrords Are mapped ando dich hlacke. J Objeelve of File Organizefion i= | ——* Fh conletns__onltme|_celectton of mecexle,Leaceanle— céa_fe selected ae lack Ae posctble« £1 To posfoom incent, delele or pdb. taancacteon an dhe -—}ecnada should be quick orf easy, | 2 The _duplicade recoucftoAnont be intace) Aga neadt of tnsend, oplade oor ofefes S| Fie—the minima) Cask af slosage , aecach should he Slane __edficonlly. | Bes of Lie oagani > ile engonizaften _cotlatny v@wtous no Lnode- These posliatey. moe{hace_have pos ard cons on, the bres of sm—selespieg_+Tn_the Gle orgerizalion dhe ah BS v4 ——frmffmmen—clecicles the _bosk= suite Le. onganizayinn methad Acconsling fo bys 2ryumnen) Scanned with CamScanner [Topic can sia Dat senses [Page No..LO.. —|Bpes of file_oaganizatinn gre A folly Sequentt a Gi. aganizatinn- [Heap le onganiatlion Bt lee (ile _omgonrzadion, | Tinlesced —sequerdai) @erescmahad (eam) — Cluster Cle eagani 2a dion. —86-(8]| Discuss the Act p prpertrs of a dalolace dnanercdean smth Appropriate apes. —Ans= | 9. -eansaction in a _dalakase cyclen must n@infarn —_| Momicth, , Consistenayy , Telalion, asd Cusabiidy — co meant ———} knowns Act D propendies —in oncom +0 erame Aorpay, Com ltdevess Aro|_dala sintegatly. o| 4 be ese aa cs Sollee apc sedis Calls Lea ‘alt Ble_in maht) sbene indalece ilulaalag BR eartrtn thon), ploine_olamicily . e | Cncislengy := The nansaofinn Sarat brosk tho dabhin'g loonslaainje: Fos evample 2! | pumber_cdumn om cam _onley Coy foi _nenyenale they __ corfistoncy clicdvles {ha} any _{mdrslion Ath eynpling sto | OMe aa _alphabolionQ —letles may nob commit, ew _ | Farlphton i= A deansaction should nel ake ils _uptites wicible 40 olher teancactimg onti) ib Is commited 5 lini Papal eben enforce strictly , selves the dlerapnsng [Aoocstion —amestaye © | Remability = when 2 toan@ofton has made a charge fa Jfe ____| dajataae Slade cavel_the charge is _consmittec| y-Hhis charge i¢ | pe mancnd ose] _sranild fe Qmoilsble Jo Al) ether fadncalreng. | Scanned with CamScanner Hows ame _viecos —_cmtecl onde ala oppecl- exploin...hae the wtews ame implemented —srel__upcllect 2 —| A _vie® is a _vintual_o logical dahe the Aled Jo vies Loos menipulbfe _pabls of the fable» Views are _wse ls fors-— | cecemby of Aalr- [Syntax ie - Caeling om REMACE VLEN_siew—name 4S SELECT tabu Lrome_co)_ FROM fable — name Cs) tOHERE—corclideens 5 AL vie con be cropposd_usng & DROP slerlereonl ass DROP VIEW view= Ane 5 There Ame_mdny—advanlages —verg vila = oe _| 3% _Secumbly ic Fach use can Be given _pesatissian do access the dalabose ooly thaaugh & small_sel_of view dhot- confearn the stectfic dake fhe ysen is Audberized doses hus msfaicting the vars aacess fo _slex| dala. ° Quesy. inaplicily = ALvicto_can_drdtia dala from nernh differed: tables ore} povoent i. rg Acingle able. to it mutlintable quewes Into single fable —prestes 09 gt the wie. ° tc A vie® oa0 poesend AQ consi do ncy,. wnchinger! image of the shuclame af the clala hase , even if the weclerky roq——Sounce. lables Ore colts ws}-suolucec| 0 2 pamed ew | Bala sinkegaiby i T-P_clala_is Accesses! ec Vhoough 8 vies. the —ppms_can_puferseicAllp atvak le dA slo eraune iat if meols dhe specified Integaily constninis: —— Scanned with CamScanner Topic... Date. — Page NO. LQ jBiscuss Zale mebetentune pith necesiry dingpam onal cigeat- } Sir __example a Ltoomtd) clomadys A ates anchors pe ic A type of cobfeme architects — Lhich is mmpacel of thaee “lent” oa “Nagone! Jog veel comarting « They x. offer usecl in applrcadecns RsomlAtion Tiex t- The psecemPlien lice ig the freer 0d tyes inche 3—Ler cyclin Aad cance of fhe ucorse tafor(aco » The igere mnfenfive ic alba cpophical one Arressible tral @ weh brccen on woh based Application Business logic arr ApplicAtcon tiew'= This layer conotn, the Lusmesc Jogi, Aho cline: the applilrnn cose (oeclrachp koe Like making clecésiane, AlaOabiene, edlulien, arc che lO pissing felwona the olher 4x0 favors H's eeffevy LOsiten in TAVA NET ott , bon rig fo Pala tiers += Thre (ary ts mecpengible Lae rd Aclerg sith fale hace [Hale tecoge cyclen ta ome aed ofene 2 dala. Cpreoles Of uel cycling one my SOL, Oracle , Posdgne <@l ob. Balm te aacisee| be the andlicalior byes Wa APT calls- e __¢ |S-Tea anchifectune eanple in Real oodts— Acimple eyample of 3altere Archubechae in actron scoudef he helo, ing abiA account suclx ac _aellIx asd mA lobe A_video: you clcof hep Legare in ile VIA blo yeh ons Via a pobile Apphealton: Scanned with CamScanner

You might also like