0% found this document useful (0 votes)
20 views9 pages

Activity - 3

The document discusses the fundamentals of relational data models, including key concepts such as tables, tuples, attributes, and constraints. It explains operations like SELECT and PROJECT, as well as the importance of maintaining data integrity through primary and foreign keys. Additionally, it highlights the characteristics of a good database design, emphasizing the need for data isolation, minimal duplication, and support for multiple user views.

Uploaded by

hameezahmohsin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
20 views9 pages

Activity - 3

The document discusses the fundamentals of relational data models, including key concepts such as tables, tuples, attributes, and constraints. It explains operations like SELECT and PROJECT, as well as the importance of maintaining data integrity through primary and foreign keys. Additionally, it highlights the characteristics of a good database design, emphasizing the need for data isolation, minimal duplication, and support for multiple user views.

Uploaded by

hameezahmohsin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 9
explain he Basie lev oninologies wed in gutlational | dala motel? Ravic Neuminclogtes uted tin oulational dala model ¢ ( oMatbyle vfach oluma Sn a table diyibula a the poperlel chich define a galatton- "Tables bn the gitlalfonal model ehe-the , stations asi saved “in the able temat 34 is stored alors with “ts ontiliess\ fable had aap: 0 and Column « Rows superesent secor and Glumas Stpvcrent — atlyibutes- “Tupl db id nothing bub a single sow af a table, which antaint a single — sucord Rdation Schema. oh gilation Achema suprsents the name of the sitlation with tha allvibutes- Kelatinn ttwtance t Relation ‘inblance %S ade ad 9 tuples | ‘in the RdBMS ayalem - elation ‘nttances Never have duplicate 4upla * Qegrees the total number at athribut uakich tn the sulation t @led the duavee of the sulalfon * Gaxdinaliby eYotal numb er of Rows “present in the Table. Golumas4he Column suprenents the get values per a apedfic atlyibute . if Relation Key Every sai had one, tue oy mulple attvibuta, which t Caled sulation bap Nibute domain = Cyey allyibute has some pre ifn Nalue. and Slope which Known as attYbule NAN 0 ._. @ scanned with OKEN Scanner 7 ZS Explain difeven! dypa Combyatnly Se Barve with ? amy i Diffevent nyo of Conslvainia ‘in YRIAG ts ( i + Romain Const-ra’ ni 7 Tuple Untauen os (ondhyainy * Key fonslyatnt : Batik Integrity duhyaint Rel evendtal Snhegrity —Costvain * Aoman CONSTRAINT: Domain Gowlratal Solin. The domain of 4k of waluo for an allvibyte. D &ver domain mwk Conlatn alomic values (2xnaltel indivi’, UAH) ae eneonh Compacttie and mull\-valued ally toutes avi “not allowed ? We perfewm dalype check heve » which mean, we Wsign a dato Woe Jo a Column we \irnit ‘he value hat i} Gn Contain Sxomple: NAME Age Akshauy 20 Abhishek 2 Sheshank Lo Rahul A Here value ‘A’ th pot allowed ince on I_Valu Can be Jalon, @ scanned with OKEN Scanner Key CONSTRAINTS OR UNIGUENE? y Shae ow Ca\ Uniguen Os endings hal every tuple tn Unique + 0 . sa sAlotion Con have nul Rup os Gnaiete Rey (minimal Aupak Ys out of which” we chont 906 2 hey, we don't hnavé one the Keys OS Primor saiviction pn choo stn g tne primary Gaslidate Reys, bur auggare he Camedos Rey with las “pureed 3 Null value ase” wot an The key hence Net Null Ruy Cow tvoiv allowed Constraint 1A Examplel: cxam Shashank Rahul T @ scanned with OKEN Scanner | Refevetal Galeqpy Coubsalal: She afer ent al idea Combrotnts ts Ape ved — pelween }we nileton my, Jably and ued Jo maintain ‘the Consistency) Among the \upls yo aulations. Dshis Gyslvaint is enforced Through fregn pa whtn an aklyibute 4n the id tan sth orl ic Ri have the ame domain(s) the Fyn art key Of glafton R2, then The foreign hot a is Aad to gulevtnce ov sues Jo “4 primary Rey awlation R2- A She values of the foreign Rey fn a tuple Wo sulation Ri Con either take ‘he oe he rime Rey for dome luple tp ao R2, bY GR joke NULL Nala but Gr't be emply Example + Constder the Plowtna jwo sulalfon - Sudert’ and Departmen”. etuaio_[ name [Ddept-no Deploo | depl-name @ scanned with OKEN Scanner ENTITY SNVEARTTY CONSTRAINTS Entily tnd thy Constr ainl Apecifies thal ao ativibute o pimart Key must Contain @ null value tn any Hilation . Shu Ys because. using primary key wt idan ty each ple urtoyuely in a xAladion- Eousple Age A esha Avhiphel Shohank Rahul 2) LO gee! Yhin galedtion dows not sktiafy the enkthy Aint vi wwhvarnt os here dhe ce Rew eget Fnutl value Bplatn the —suilor—of —FoneHfonet explain SELECT and PROJECT opevation in sulational bok model with example? eset walion: Nhe Adlect o eration selects tuple that KSelect 0 elec raven predicate » St 1b denoted by Aigma (=). alinhy ov |. Wolalton + o pls) ib used fou Aelectfon prediction. th used for gelation. p is used db 8 propostional logic formula which may ws L Conneclrs tka + ANP OR and NoT @ scanned with OKEN Scanner Nao eonal apevatovA \ec> hese, gtlational Gan use ad ywlalfonal apevatora 1 ke =rfy > Sr Peder Examples LOAN Relation RMN NIA Lon NO | AMOUNT Downtown L-19 1000 Redwood bL-23 2000 Penyyid ¢ L-Is 1s00 Downtown L-1y 1s00 aah L-3 soo Round hi | L-u aoo Povsyyi de L-le L300 Snput : © BRANC ame Output H—NAmg = peryride” Croan) BRANCH _] H-NAME LOAN Np i enyyide OUNT, L-ly Pevruride 1800 9 L~1¢ > L300 [ a) Project Operation s Shia opevalton Ahows He lat o those oitvibules hat we wish 4o appeay in the swsulk» Res of the atlyibute au etimtnated fvom the Sable .4hi denoted by TT. \. Notodfons TT Ay AD An (v) Wheres AY, A2,A3 tb wed as an attyibule name ef elation Y, a a @ scanned with OKEN Scanner , CUSLOMER = RELATION ong: Havyidon Rye Hayton Rye Broo Riya Senatoy Brooklyn pu tie Il NAME, CITY (CUSTomER) Jutpy te aly Jone Horridon Smith Rue H ays -Haetyt Aon Curry Rye | Tohnaon Brookly» Brooks Broe Klan @ scanned with OKEN Scanner % >, qv ie ict ok Good pata Gabe desiqn® | Mention the fealines of qood be eee | CE re - love \we should be able to ‘lee we need +o work exist ty ghia gual eoovla Since a ee as with all Kinds af data and sequirements , the a ?, a [Should be shon enoug h Jo Alore all Rinds of lai hat aug praerd> avo und Ube Rie should beable $o ulate the enttfies frables Int ~ 44 Shere hould not be an database by mean of sulation. ie gany two table had be auloded . Let us say, an employee wsorks yer & department» Shes implies “that an employee *s jatlated to a particulay gle artment: le Ahould be able + |lefing Auch a sulationh’r “behoetn any two endtiter, fr he adipose » Shee Should not be any dable lying [Without any mapping | Data and appkcattons Zhould be isolated - Because +h data boye zy a system that give the platform to tore the data, and the dele is he one that allo. ithe database to wok , ae duplication ff deda ty she dotsbase Daa should bo Abored Mm éuch a wau thot + should not be supeated tn multiple fala .§) wpeded, it would be an unnecesary waste of dB Apate and aa buch ae chaos. DBMS hes a dhong Ye3 loneuages One the dota bas th dsigned ' +h helps the a 1 Yelviee and Manfpulal e the data + Of o particular wer cuantrte Aw omy apecific deda, he Gn apply ab many —_— @ scanned with OKEN Scanner Fe ee - Ffning Conditions Vhat he wants ond pull she ODF tad ne neeolh » waliple wes should be able fo auvs Mn bala ateoaae > Laithout affecting Yhe othey user VES I | rachevs Want fp update dhe mavka 0 the Rault, | vole ot the Aame ime, then they Ahold be wed * update he marks fer they Aubjeda sustthoat diluting othey AubtecT matks «A good defa base J J tou! Aupport this feature. t Aupports mulfiple views to the wes , dlipending on a goles dn a school dalaloase , Atudents will aole i be AW ahay ots and. They accvd _boow prey Gqt the same Himes qeachers will have ion doo all the stedeats with modiffcadion v¥q his. | 2 should alse provide Aecurity € 5 when thele te ara en au accent thd dafploase, | | | | } | j | us rnultip : ach user will have theiy own levels of aight de sw the datobase - . She dalabase should also Aupport the ACID property ives vohile prfermin g ony tranactions tke inset, dale and dslele, the dalsloas € mak suve that rhe a} purpose of the dada id nat lost. @ scanned with OKEN Scanner

You might also like