Está en la página 1de 5

SEMESTER II 06/07 WXES2103 DATABASE TUTORIAL 3 : ENTITY-RELATIONSHIP MODELING 1.

Using the following partial ERD, write each relationship in ERDish: EXAMPLE of the relationship between EVE ! an" #L$E !: Each #L$E ! %a& be the owner of one or %ore EVE !s. Each EVE ! %'st be owne" b& one an" onl& one #L$E !.

owned by

(. Draw softbo)es for each of the following. Draw relationship lines an" correctl& label each relationship in both "irections. $n"icate non*transferabilit& when appropriate. a. Each town %a& be the birthplace of %an& people. Each person %'st be born in one an" onl& one town. . Each roo% %a& ho'se one or %ore g'ests. Each g'est %a& sta& in one an" onl& one roo%. !. Each e%plo&ee %'st wor+ for one an" onl& one "epart%ent. Each "epart%ent %a& ha,e one or %ore e%plo&ees.

". Each hotel %a& be the host of one or %ore g'ests. Each g'est %a& be hoste" in one or %ore hotels. #. Each %essage %'st be a""resse" to one or %ore persons. Each person %a& be the a""ressee of one or %ore %essages. $. Each gar%ent %'st ha,e one an" onl& one price. Each price %a& be for one or %ore gar%ents. %. Each airline co'pon %'st be 'se" for one an" onl& one "estination. Each "estination %a& be ,isite" with one or %ore co'pons. &. Each a'to%obile %'st 'se one an" onl& one tire si-e. Each tire si-e %a& be 'se" b& one or %ore a'to%obiles. '. Each chil" %'st ha,e one an" onl& one %other. Each %other %'st be the parent of one or %ore chil"ren. (. Each person %'st be of one an" onl& one bloo" t&pe. Each bloo" t&pe %a& classif& one or %ore persons. ). A person %a& be on one or %ore .'n+*%ail lists. Each .'n+ list %a& contain one or %ore persons. *. Each st'"ent %a& learn fro% one or %ore teachers. Each teacher %a& e"'cate one or %ore st'"ents. +. Each school %a& be atten"e" b& one or %ore honor st'"ents. Each honor st'"ent %'st atten" one an" onl& one school. ,. Each fingerprint %'st belong to one an" onl& one person. Each person %'st ha,e one an" onl& one fingerprint. /. Resol,e the M:M between !EA#0ER an" #LA11 as well as $ !ERPRE!ER an" LA 2UA2E. 3or each intersection entit&, thin+ of a""itional attrib'tes li+e a U$D.

4. Using the 51'%%it 1porting 2oo"s6 scenario intro"'ce" below, "raw an ERD 'sing the entities an" attrib'tes. !r& to resol,e an& %an&*to*%an& relationships with intersection entities. SUMMIT SPORTING GOODS $7% a %anager of a sporting goo"s wholesale co%pan& that operates worl"wi"e to fill or"ers of retail sporting goo"s stores. !he stores are o'r c'sto%ers 8so%e of o'r people prefer to call the% o'r clients9. starting this &ear. Right now we ha,e fifteen c'sto%ers worl"wi"e, b't we7re tr&ing to e)pan" o'r c'sto%er base b& abo't 1:; each &ear <'r two biggest c'sto%ers are =ig >ohn7s 1ports E%pori'% in 1an 3rancisco, #A., U1A, an" ?o%ansports in 1eattle, ?ashington, U1A. 3or each c'sto%er we %'st trac+ an $D an" na%e.

?e %a& trac+ an a""ress 8incl'"ing the cit&, state, -ip co"e, an" co'ntr&9 an" phone n'%ber. ?e %aintain wareho'ses in "ifferent regions to best fill the or"er of o'r c'sto%ers. 3or each or"er we %'st trac+ an $D. ?e %a& trac+ the "ate orth A%erica, 1o'th or"ere", "ate shippe" an" pa&%ent t&pe when the infor%ation is a,ailable. Right now we ha,e the worl" "i,i"e" into fife regions: A%erica, Africa@Mi""le East, Asia, an" E'rope. ?e onl& trac+ the $D an" the na%e. ?e tr& to assign each c'sto%er to a region so we7ll generall& +now the best location fro% which to fill each or"er. Each wareho'se %'st ha,e an $D. ?e %a& trac+ an a""ress 8incl'"ing the cit&, state, -ip co"e an" co'ntr&9 an" phone n'%ber. ?e c'rrentl& ha,e onl& one wareho'se per region, b't we7re hoping to ha,e %ore soon.A A$ %anage the or"er entr& f'nctions for o'r wholesale sporting goo"s b'siness. M& "epart%ent is responsible for placing an" trac+ing the or"ers when o'r c'sto%ers call. 3or each "epart%ent we %'st trac+ the $D an" na%e. 1o%eti%es, o'r c'sto%ers .'st %ail 's the or"ers when the& are not in a r'sh, b't %ost often the& call 's or fa) 's an or"er. ?e are hoping to e)pan" o'r b'siness b& pro,i"ing i%%e"iate t'rnaro'n" of or"er infor%ation to o'r clients. application %ight be able to be p't on the ?ebB ?e can pro%ise to ship b& the ne)t "a& as long as the goo"s are in stoc+ 8or in,entor&9 at one of o'r wareho'se locations. ?hen the infor%ation is a,ailable, we trac+ the a%o'nt in stoc+, the reor"er point, %a)i%'% stoc+, a reason as to wh& we are o't of stoc+, an" the "ate we restoc+e" the ite%. ?hen the goo"s are shippe", we inten" to fa) the shipping infor%ation a'to%aticall& thro'gh o'r shipping s&ste%. o, $ "on7t %anage that area. M& "epart%ent .'st ens'res o'r c'sto%ers ha,e the correct billing infor%ation an" ,erifies that their acco'nt is in goo" cre"it stan"ing. ?e %a& also recor" general co%%ents abo't a c'sto%er.A ?e "o %a+e s're all the ite%s the& ha,e reC'este" are in stoc+. 3or each ite% we trac+ an $D. ?e %a& also trac+ the ite% price, C'antit&, an" C'antit& shippe" if the infor%ation is a,ailable. $f the& are in stoc+, we want to process the or"er an" tell o'r clients what the or"er $D is an" how %'ch their or"er total is. $f the goo"s are not in stoc+, the c'sto%er tells 's whether we sho'l" hol" the or"er for a f'll ship%ent or process the partial or"er.A !he acco'nting "epart%ent is responsible for %aintaining the c'sto%er infor%ation, especiall& for assigning new c'sto%ers $Ds. M& "epart%ent is allowe" to 'p"ate the c'sto%er infor%ation onl& when an or"er is place" an" their billing or Do &o' thin+ this

ship*to a""ress has change".

o, we are not responsible for collections. !hat7s all

han"le" b& acco'nts recei,able, $ also thin+ that the sales reps get in,ol,e" as their co%%ission "epen"s on c'sto%ers who pa&D 3or each sales rep, or e%plo&ee, we %'st +now the $D an" last na%e. <ccasionall& we nee" to +now the first na%e, 'ser $D, start "ate, title, an" salar&. ?e %a& also trac+ the e%plo&ee7s co%%ission percent an" an& co%%ents abo't the in"i,i"'al.A A<'r or"er entr& personnel are well ,erse" in o'r pro"'ct line. ?e hol" freC'ent %eetings with %ar+eting so the& can infor% 's of new pro"'cts. !his res'lts in greater c'sto%er satisfaction beca'se o'r or"er entr& operators can answer a lot of C'estions. !his is possible beca'se we "eal with a few select c'sto%ers an" %aintain a specialt& pro"'ct line. 3or each pro"'ct we %'st +now the $D an" na%e. <ccasionall& we %'st also +now the "escription, s'ggeste" price, an" 'nit of sale. ?e wo'l" also li+e the abilit& to trac+ ,er& long "escriptions of o'r pro"'cts an" pict'res of o'r pro"'cts, when it is necessar&.A

También podría gustarte