Anda di halaman 1dari 6

Database Management Systems F28DM1 Semester 1 2008-09

Coursework Instructions 1st Deliverable: Database Design (35%)


The coursework takes the form of a group pro ect! The c"ass w#"" be broken #nto teams of $ peop"e! The team w#"" then create a %atabase app"#cat#on& an% pro'#%e the necessary %es#gn %ocumentat#on as part of the assessment! Th#s app"#cat#on cannot be a "#brary system of any %escr#pt#on& #!e! '#%eo& c%& %'%& book "#brar#es are all prohibited! The app"#cat#on shou"% be a un#(ue& we"" thought out pro ect! Marks w#"" be awar%e% for #ngenu#ty! The goa" of the 1st part of your )D* pro ect #s to+ formu"ate %ata re(u#rements for your app"#cat#on& %raw an ,--%#agram that captures these re(u#rements! trans"ate the ,--%#agram #nto a re"at#ona" schema #mp"ement the schema #n .rac"e& an% f#"" the .rac"e %atabase w#th %ata! Data Re uire!ents and "R Diagra! )n rea"#ty& the formu"at#on of re(u#rements an% the %es#gn of the %#agram go han% #n han%! So& %o both #n para""e"! Def#ne your app"#cat#on so that #t has a s#/e that makes #t #nterest#ng! Th#s means the ,%#agram shou"% conta#n 18 -20 ent#t#es 0 re"at#onsh#ps! The !ini!u! s#/e shou"% be 18 1ent#t#es 0 re"at#onsh#ps2 for groups of $ stu%ents!

3r#te up those re(u#rements that cou"% not be e4presse% #n the %#agram an% e4p"a#n why that was the case! #ranslation into Relational $che!a 3r#te up a re"at#ona" schema that #s e(u#'a"ent to your ,- %#agram! Make sure that you trans"ate not on"y ent#t#es but a"so re"at#onsh#ps! 3r#te a short e4p"anat#on how the 'ar#ous ent#t#es an% re"at#ons are e4presse% #n the re"at#ona" schema! I!ple!entation o% the $che!a in &racle 3r#te an S56 scr#pt w#th the comman%s to create the tab"es of your %atabase! *n S56 scr#pt #s s#mp"y a f#"e w#th S56 comman%s! !

Database Management Systems F28DM1 Semester 1 2008-09 The 7-,*T, T*86, statements must spec#fy 1! 2! :! =! $! appropr#ate types for the attr#butes the pr#mary key9 constra#nts such as ;.T ;<66 an% <;)5<, whene'er appropr#ate9 %efau"t 'a"ues where appropr#ate9 F.-,)>; ?,@ constra#nts& together w#th the po"#cy for react#ng to changes 1remember that the %efau"t #s .; D,6,T, ;. *7T).;2

3r#te comments #nto the scr#pt that e4p"a#n the rat#ona"e beh#n% the %ef#n#t#on of your constra#nts! 7omments #n S56 can be wr#tten #n two ways+ o'er se'era" "#nes enc"ose% #n AB! ! ! BA& #!e!& #n the form ABC7ommentDBA #n a s#ng"e "#ne after two hyphens& #!e!& #n the form C7ommentD

'oading Data 6oa% #nterest#ng %ata #nto the %atabase! )n pr#nc#p"e& you can %o th#s e#ther by wr#t#ng many );S,-T statements& or by creat#ng a f#"e that conta#ns the %ata that you want to f#"" #nto a re"at#on& an% to "oa% the f#"e content us#ng the bu"k "oa%er! For th#s mo%u"e& you shou"% e4per#ment w#th both& the #nsert statements an% the bu"k "oa%er! The bu"k "oa%er #s #n'oke% w#th the she"" comman% s lldr! The ;otes on the .rac"e D8MS conta#n a usefu" an% conc#se #ntro%uct#on to the bu"k "oa%er! 1E#nt+ make sure that the contro" f#"e an% the %ata f#"e both en% w#th new"#ne! .therw#se you get strange error messages!2 Deliverables The %e"#'erab"es w#"" be 1! a f#"e w#th the %ata re(u#rements9 2! a f#"e w#th the ,- %#agram an% a comment on the re(u#rements that cou"% not be capture% by the %#agram9 :! a f#"e w#th the re"at#ona" schema an% an e4p"anat#on how #t has been %er#'e% from the ,- %#agram9 =! an S56 scr#pt that creates the tab"es of your %atabase an% conta#ns comments on the constra#nts etc! you ha'e chosen9 $! for each tab"e a scr#pt w#th S56 #nsert statements or a "oa%er f#"e w#th %ata! Deadline and $ub!ission The work #s to be subm#tte% by pub"#sh#ng #t on the web s#te of your )D* group! The %ea%"#ne #s Fr#%ay 1Fth .ctober by 1pm!

Database Management Systems F28DM1 Semester 1 2008-09 Coursework Instructions (nd Deliverable: Database )ueries and #ransactions (35%) The goa" of th#s part of your )D* pro ect #s to 1! (uery your .rac"e %atabase 2! %ef#ne transact#ons runn#ng on #t& an% :! create an app"#cat#on program by wh#ch a user can access the %atabase! @ou w#"" ha'e an occas#on to app"y the mater#a" of the "ectures on S56 an% on GD87! )ueries over the Database 3r#te (uer#es o'er your %atabase schema that are #mportant for your app"#cat#on! The (uer#es may be s#mp"e S,6,7T statements or );S,-T& <HD*T,& D,6,T, statements that conta#n a S,6,7T statement! For each (uery& f#rst wr#te #n ,ng"#sh what #t #s suppose% to %o& an% then g#'e the S56 co%e! >roups of four shou"% wr#te at "east 20& groups of f#'e at "east 2$ essent#a""y %#fferent (uer#es! *mong those (uer#es at "east two th#r%s shou"% be #nterest#ng #n the sense that they conta#n at "east one of the fo""ow#ng features+ I o#ns #n'o"'#ng the same tab"e tw#ce& I aggregat#on w#th group by an% ha'#ng& I nest#ng w#th aggregat#on& I neste% negat#on& #n'o"'#ng ;.T ,J)STS or ;.T );! #ransactions *s a preparat#on for wr#t#ng your Ga'a app"#cat#on& %ef#ne a set of transact#ons to be performe% on your %atabase! >roups of f#'e shou"% spec#fy at "east f#'e 1types of2 transact#ons! Some of the transact#ons may be s#mp"e S,6,7T (uer#es& #nsert#ons& up%ates& or %e"et#ons! *t "east ha"f of the transact#ons must #n'o"'e at "east two %atabase accesses& e!g!& f#rst rea% some %ata an% show them to the user& after wh#ch the user %ec#%es how to mo%#fy or %e"ete the %ata! )n the transact#ons you may use some or a"" of the (uer#es you %e'e"ope% beforehan%! 7"ear"y& #nterest#ng transact#ons w#"" be base% on (uery patterns rather than f#4e% (uer#es! *ava +pplication 3r#te a s#mp"e Ga'a app"#cat#on that runs the transact#ons by connect#ng to the %atabase '#a GD87! There #s no nee% for a graph#ca" user #nterface or anyth#ng fancy! * s#mp"e comman% "#ne #nterface where the user chooses between opt#ons us#ng numbers w#"" %o!)n

Database Management Systems F28DM1 Semester 1 2008-09 or%er to connect to an .rac"e %atabase you ha'e to "oa% the .rac"e GD87 %r#'er! The name of the GD87 %r#'er for .rac"e #s orac"e! %bc!%r#'er!.rac"eDr#'er The co%e for th#s %r#'er #s "ocate% #n the f#"e AusrAorac"eA %bcA"#bAc"asses111!/#p *t run t#me& Ga'a nee%s to know the "ocat#on of the %r#'er co%e! @ou make #t access#b"e by a%%#ng the abo'e path to the paths #n the 6#nu4 she"" 'ar#ab"e 76*SSH*TE! )f you run the csh or tcsh she"" you wr#te #nto your !cshrc f#"e seten' 76*SSH*TE AusrAorac"eA %bcA"#bAc"asses111!/#p+!+K76*SSH*TE )n an app"#cat#on& you w#"" create connect#ons to the %atabase orc" on the mach#ne orac"e! )n or%er to %o so& you ha'e to use the <-6 of the %atabase& wh#ch #s %bc + orac"e + th#n + Lorac"e + 1$21 + orc"! Deliverables The %e"#'erab"es w#"" be 1! a br#ef report conta#n#ng the (uer#es an% for each (uery an e4p"anat#on #n ,ng"#sh of I what #t #s suppose% to %o& an% I why the (uery #s #nterest#ng #n your app"#cat#on 2! * br#ef report that for each transact#on I %escr#bes what #t %oes an% why #t #s #nterest#ng9 I g#'es the (uer#es& up%ates etc! of wh#ch the transact#on cons#sts! :! a report on the Ga'a app"#cat#on conta#n#ng I a short %escr#pt#on of #ts funct#ona"#ty9 I a short %escr#pt#on of the %es#gn 1wh#ch are the c"asses an% what they are goo% for29 I the source co%e9 I the "#st#ng of a samp"e #nteract#on! Deadline and $ub!ission The work #s to be subm#tte% by pub"#sh#ng #t on the web s#te of your )D* group! The %ea%"#ne #s Fr#%ay Fth ;o'ember by 1pm!

Database Management Systems F28DM1 Semester 1 2008-09 F23AF1: Database Systems - Assessment: Deliverable 1 (35% of overall project mark
Group ID: !arkin" criteria
Data )e*+irements an$ ') $ia"ram 1 Data Requirements "# $R Diagram

Marker: #ra$e A
Application is an interesting size, original, clearly shows requirements and usti!ies reasoning Diagram has clear speci!ic entities and relationships, which are clearly descri%ed and rele&ant to application# All requirements including those not e'pressed are e'plained All entities and relationships translated !rom $R diagram to relational schema, clear e'planation as to how they are e'pressed in relational schema# A clear *,- script containing the rele&ant commands !or the creating o! ta%les is presented# *cript is well commented and e'plained Data is correctly loaded into the ta%les created using precise insert and %ulk loading techniques

Date: A % & D ' F


(ass Fail
Application lacks required size, originality and no usti!ication on reasoning

Mark &omments

# #ra$e #

(ritical entities) relationships missing, lacks conte't to application, not all requirements e'plained# Relational schema lacks entities and relationships !rom $R diagram# +o clear e'planation as to how they are e'pressed in schema +o script, or no rele&ant commands !or creating a ta%le present# +o comments or e'planation gi&en# +o data loaded into ta%les, lacks insert and %ulk loading techniques

,ranslation into )elational Sc-ema Relational *chema is clearly equi&alent to the $R diagram .mplementation An *,- script is created and runs correctly /oa$in" Data Data is shown to %e clearly loading into the ta%les created#

#eneral comments *trengths

*uggestions !or impro&ement:

Database Management Systems F28DM1 Semester 1 2008-09 F23AF1: Database Systems - Assessment: Deliverable 2 (35% of overall project mark
Group ID: !arkin" criteria
0+eries

Marker: #ra$e A
.he required num%er o! di!!erent and interesting queries laid out, including oins, nesting and aggregation

Date: A % & D ' F


(ass Fail

Mark &omments

# #ra$e #
,ueries do not meet num%er required, those present not interesting as contain no oins, nesting or aggregation +o types o! transactions present, no de&elopment on pre&ious queries, do not access more than one ta%le and are static

,ransactions

.ransactions are at least / types and include some o! the ,ueries pre&iously de&eloped# At least hal! contain " accesses and are %ased on query patterns#

1ava Application

Fu"" report on the Ga'a app"#cat#on conta#n#ng %escr#pt#on of #ts funct#ona"#ty9 the %es#gn& the source co%e an% the "#st#ng of a samp"e #nteract#on!
*u%mission is well laid out, shows good detail, application o! knowledge and e!!ort#

Report lacks application description o! !unctionality, design, source code and sample interaction

/ayo+t

*u%mission is scrappy, no clear e&idence o! work or e!!ort

#eneral comments *trengths

*uggestions !or impro&ement: