COIT20247 Database Design and Development (T1 2017) Assessment item 2—Assignment 2 Due date
11:45pm 11:45pm on Friday of Week 10 (May 19, 2017)
Weigting
35%
!engt
Not appi!a"e
Ob"e#tives #$i aement item reate to t$e &nit earnin' o&t!ome n&m"er 1, 2 and 3 a tated in t$e &nit profie
Int$odu#tion #$e ampe o&tion of ai'nment 1 i "e reeaed on t$e &nit e"ite appro*imatey to (2) eek eek after after t$e t$e ai'n ai'nmen mentt 1 d&e date +o& must use tat sample solution o% assignment 1 onl& for t$e fooin' tak:
Assessment tas' 1
o$maliation
a) Map t$e t$e -., -., from t$e t$e ampe ampe o&t o&tion ion,, into a set o% $elations in at eat #$ird Norma Form (*+) +o& +o& m&t en&re t$at yo&r reation meet 3NF #$ere i no need to $o yo&r orkin' ") /ee!t any to (2) of yo&r yo&r reation reation from t$e t$e preio& preio& tep, 1a), 1a), and perform perform t$e fooin' fooin' for ea!$ of t$oe to reation: •
it a t$e %un#tional dependen#ies e*it in t$e reation
•
.emontrate t$at t$e reation meet Ti$d o$mal +o$m (*+),
For yo&r $ep, an e*ampe for a /t&dent reation 3NF &tifi!ation $a "een proided "eo: /#.N# (/t&dent., Name, 6ddre, .atef8irt$) i #$e primary primary key key i /t&dent. /t&dent. $i!$ $i!$ identifie identifie a t&dent t&dent #$ere i i "e "e one t&dent t&dent name name per /t&dent . "e!a&e ony one name i re!orded for ea!$ t&dent en t$o&'$ a t&dent may $ae m&tipe addree (e' a $ome addre and a ork addre), t$e !ae t&dy tate t$at t$ere i a need to re!ord t$e $ome addre ony and $en!e t$ere i "e ony one addre for ea!$ t&dent #$ere i "e ony one date of "irt$ for ea!$ t&dent #$&, t$ere t$ere are no repeatin' 'ro&p en!e, t$i reation i in 1NF 1NF ii #$e primary primary key key i /t&dent. /t&dent. #$i i t$e ony !andidat !andidate e key in!e in!e Name Name i not '&aranteed to "e &ni&e (to different t&dent t&dent may $ae t$e ame name) 6ddre i ao not '&aranteed to "e &ni&e #$i mean t$at /t&dent . f&n!tionay determine eery ot$er attri"&te in t$e ta"e #$ere i a in'e a&ed impe !andidate key (/t&dentd) and t$erefore no partia dependen!ie are poi"e poi"e en!e, t$e reation i in 2NF
iii Name !annot "e &ed to f&n!tionay determine any ot$er attri"&te in t$e ta"e in!e to different t&dent may $ae t$e ame name; ikeie for addre and date of "irt$ #$erefore t$ere are no tranitie dependen!ie in t$e ta"e #$erefore it meet t$e re&irement of firt, e!ond and t$ird norma form 2
-elational database implementation
Note: Use
the relations that you created in the above step 1-Normalization to create a database. The recommended tool for this work is Microsoft Access version !"1" or later. #ne reason for recommendin$ Microsoft Access is that your unit lecturer%tutor will be able to provide ade&uate support to you in the use of this tool. 'f you choose to use a different ()M* then there is no $uarantee that your lecturer%tutor will be able to provide enou$h support to you. The remainder of this document assumes that you are usin$ M*-Access.
n impementin' t$e - mode proided, yo& m&t !ompete t$e fooin' tak:
•
•
•
•
op&ate t$e data"ae it$ sample data o% &ou$ on +o& m&t in!&de &ffi!ient ampe data to tet yo&r &erie and report +lease note that the e,pected result of &uery &uestions may depend on the actual sample data populated.
Data integ$it&
+o& are re&ired to impement inte'rity !ontraint it$in t$e data"ae to enfor!e t$e fooin' re&irement:
•
Fee=<$ar'e $o&d "e poitie !&rren!y and e*preed in 2 de!ima ony
•
.ate a&e $o&d not "e predated
•
Name of patient=medi!a pe!iait $o&d not "e n&
•
/tate a&e $o&d "e imited to 6&traian /tate=#erritorie ony
•
/ki and e*perien!e a&e $o&d not "e n&
•
.i!o&nt amo&nt $o&d "e poitie and !annot e*!eed ?50
In%o$mation $euests
appointment 2, .ipay t$e detai of appointment, name of t$e patient and medi!a pe!iait inoed in
t$e mot e*penie appointment *, For ea!$ of t$e medi!a pe!iait, dipay $i=$er name and t$e n&m"er of
appointment !ompeted o far 4, For ea!$ of t$e appointment !ompeted, dipay t$e date, (tart) time, name of t$e
patient and tota fee=!$ar'e of t$e appointment, di!o&nt amo&nt and fina amo&nt paya"e (Fina amo&nt paya"e C tota appointment !$ar'e A di!o&nt amo&nt ) 6, W$i!$ patient $ae !on&ted more t$an one pe!iaitD .ipay t$e detai of &!$
patient ony , .ipay t$e detai of t$e patient() $oe name !ontain t$e ord Emore /$o t$e
re&t in a!endin' order of t$e name Note: The
word name is a reserved word in M* Access. /herever you use it for *0 &uery you need to put a bracket like 2name3. 4ollow the same techni&ue for other reserved words too. -epo$t
•
•
6reate a &uery that lists all details needed for a report. 'f you are unable to formulate this &uery then create a report that is based directly on the table7s8. 2Note5 you will not be able to obtain full marks for the report creation if you base your report directly on the table7s8 and some criteria are not met in your reports.3 Use the report wizard to $enerate a basic report based upon your &uery 2or the table7s8 if you were unable to formulate the &uery3. #nce the report wizard finishes switch t o desi$n view and rename the labels appropriately9 for e,ample chan$e the label 6onsultation(ate to 6onsultation (ate.
Implementation -epo$t 8ou must also p$ovide a so$t implementation report de!ri"in' yo&r e*perien!e it$
t$i ai'nment +o& may di!& any of t$e fooin': 1 6ny to interetin' t$in'=pro!ed&re yo& earnt "y doin' t$i ai'nment 2 6ny one re&irement of t$e ai'nment t$at a reatiey diffi!&t = !ompe* to oe "&t &!!ef&y !ompeted "y yo& e t$e impementation report to demontrate t$at yo& $ae t$o&'$t !aref&y a"o&t t$e i&e t$at arie $en impementin' a reationa data"ae
Wat &ou sould submit
Mi!rooft 6!!e data"ae fie !ontainin': 1
#a"e it$ ampe data
2
-eation$ip
3
@&erie
4
nte'rity !ontraint
5
-eport (o"e!t)
6 Mi!rooft Word do!&ment !ontainin': 1
#o reation it$ f&n!tiona dependen!ie and demontration of normaiGation
2
mpementation report
+o&r do!&ment $o&d !ontain appropriate identifi!ation information (yo&r t&dent n&m"er, name, &nit n&m"er, et!) and $o&d !ontain t$e reeant $eadin' for ea!$ e!tion Impo$tant points •
•
•
•
•
•
•
•
+o& m&t ork indiid&ay on t$i ai'nment #$e mode o&tion to t$i ai'nment i "e reeaed appro*imatey to (2) eek after t$e d&e date 6i'nment t$at are &"mitted after t$e reeae of t$e mode o&tion i re!eie Gero mark +o& m&t tate in yo&r ord do!&ment t$e detai of a materia and o&r!e t$at yo& &ed to !ompete t$i ai'nment #$i may "e a impe a H#$i ai'nment a !ompeted &in' ony t$e <# 20247 &nit materiaH *tenion re&et ("y fiin' in an onine form) $o&d "e &"mitted "efore t$e ai'nment d&e date 8efore &"mittin' yo&r ai'nment, reie t$e markin' !riteria proided on t$e at pa'e of t$i do!&ment n&re t$at a t$e !riteria are addreed in yo&r &"miion >enatie reated to ate &"miion and pa'iarim i "e appied a per nierity poi!y
Assessment #$ite$ia COIT20247 Assignment 2 .a$'ing 9eet 1 -elational database implementation (12 ma$'s)
Available ma$'s
/et of reation !orre!ty mapped from -.
3
F&n!tiona dependen!ie !orre!ty ited for to of t$e reation
2
NormaiGation !orre!ty ited for to of t$e reation
2
-eation$ip et &p !orre!ty, referentia inte'rity enfor!ed, appropriate &e of !a!ade &pdate=deete
2
.ata type B iGe ee!ted appropriatey
2
nde*e A nde*e are appropriate 2 Data integ$it& (* ma$'s) .ata inte'rity !orre!ty impemented 3 :ue$ies (12 ma$'s) @&ery 1 @&ery 2 @&ery 3 @&ery 4 @&ery 5 @&ery I 4 -epo$t (4 ma$'s) nderyin' &ery=&erie $a=$ae "een !reated and are !orre!t -eport ayo&t and $eadin' are appropriate; 'ro&pin' and ortin' are appropriate 5 Implementation $epo$t (4 ma$'s) mpementation report di!&e appropriate i&e 9ub;total be%o$e an& possible dedu#tions ate penaty (enter as te numbe$ o% da&s late) Assignment 2 total
1
3
2 2 2 2 2 2 2 2 4 *6 3*6