FIT9132 Introduction to Databases

FIT9132 Introduction to Databases
2018 Semester 2
Assignment 1 - Database Design - Monash Cabins (MC)
Monash Cabins is a chain of resorts (holiday destinations) located around Australia. At each of
these resorts, MC provides cabin-based accommodation for its guests – any given resort consists
of several independent cabins. A resort is located in a particular town. MC maintain details of
points of interest (POI) in the local area that guests might wish to visit. Each POI is associated with
only one town.
For each town in which a resort or point of interest is located MC records the town name, the state
the town is located in, the latitude and longitude of the centre of the town, the average summer and
winter day temperatures, the town's elevation above sea level and its population. MC only records
details of towns which have a resort or point of interest. MC does not record a town's postcode
since they are only interested in it as a location, not as a postal location.
For points of interest MC records the street and town in which it is located, the name of the point of
interest (eg. Merimbula Aquarium), a brief description of the point of interest, its opening hours (if
appropriate), and the type of point of interest (café, museum, restaurant, national park etc). The
opening hours are recorded as the time at which the POI opens and the time at which it closes,
only one set of these times are recorded (ie the POI is assumed to open and close at the same
time all year). Each POI is only classified as one type of point of interest, for example, a cafe in a
national park will be classified as a cafe. A scan of the potential MC data has indicated that some
towns contain two POIs of the same name.
Each resort is assigned a unique resort id. MC has several resorts in some towns and only a single
resort in others depending on the location's popularity. Each resort has a name (eg. Merimbula
Beach Cabins). A resort's street address and town name are recorded. MC also records for each
resort the star rating of the resort, which is determined from the average of all guest reviews,
whether guests may bring their pet dog/s while staying at the resort and if the resort manager lives
at the resort. Each resort has a single manager. MC assigns a manager id to each manager and
records the manager's name, postal address (including town and postcode) and the manager's
contact phone number. Some managers live on site (ie. at the resort); others live at their own
private residence, however, MC does not need to record the manager's residential address, only
their postal address. Where a location has several resorts, a manager may manage several
different resorts.
Page 1 of 8
Each resort consists of a number of cabins – the cabins are numbered starting from cabin 1 at
each resort. MC records how many bedrooms there are in each cabin, the sleeping capacity of the
cabin (how many people it can sleep) and a description of the cabin to provide potential guests
with some details to assist their decision making.
MC guests, those staying at the resorts, are assigned a unique guest number when they first
register with MC. The guest name, postal address, country, email and contact phone number are
recorded. A guest makes a booking with MC by choosing the resort they wish to stay at and the
cabin they wish to stay in. Guests are required to provide the date they wish to book from and the
date they wish to stay to. They must also supply MC with the number of adults, the number of
children and the number of pets (if applicable) who will be staying. MC record the total charge for
the particular booking, based on the cabin rate and the number of days of the guests stay.
Guests are offered the opportunity to provide a review of the resort - they are not required to do so,
but if they do, they provide a comment and a rating from 1 (poor) to 5 (outstanding). These reviews
are treated as general reviews of the resort rather than being related to a particular cabin or stay. A
guest may complete many reviews of a particular resort during their stay. The review may also be
made after the guest has left the resort. The date of the review is recorded (a guest is not permitted
to complete two reviews on the same day).
The rates charged for a cabin depend on the cabin itself (some cabins have special features such
as a spa) and the time of the year in which the guest is staying. For example, for seaside resorts,
the highest rates are charged in the peak summer period (eg. Jan – Feb) when demand is at its
highest. The rate for each cabin is recorded for each of these charge periods – rate periods may
vary between different locations. Where a booking spans several rate periods, the booking is
charged at the rate which applies on the first day of the booking.
When a guest vacates a cabin, MC use contract cleaners to clean the cabin. MC maintain a
running sheet, for each resort, to record cleaning activity (a small sample of this is shown below):
Document A
Page 2 of 8
A cleaning contractor is assigned a unique contractor number when first taking up work with MC.
Contract cleaners may work as casual staff or fixed term staff. Fixed-term staff sign a contract to
clean for a set period of time such as three or six months. Casual cleaners are not locked into any
fixed period to clean, they are available on a weekly basis as work is available or suits them.
Casual cleaners are contacted when work is available to clean a particular cabin and may accept
or reject the job. Contract cleaners may shift between these two modes depending on what suits
them better.
MC maintain a record of the contract history for all cleaners ( a small sample of this record is
shown below):
Documents B and C
Page 3 of 8
TASKS
Please ENSURE your name and ID are shown on every page of any document you submit. If a
document is a multipage document, such as for the normalisation, please also make sure you
include page numbers on every page.
Moodle Part A Submission:
1. Using LucidChart, prepare an INITIAL conceptual model (Entity Relationship Diagram) for
Monash Cabins (MC).
○ For this initial conceptual model, include what you see as identifiers (keys) for each
entity only (other attributes are not required ) and all relationships.
○ Surrogate keys must not be added to this model . Participation and connectivity
for all relationships must be shown on the diagram .
This initial conceptual model must be submitted to Moodle as Assignment 1 Part A
by 5 PM Monday of week 6. If this submission is not made by this date you will not be
able to submit Assignment 1 Part B.
No marks are awarded for this submission, your tutor will provide feedback and guidance
based on your submitted initial model which should be integrated into your continuing work
in Part B (which is graded).
Moodle Part B Submission:
2. Perform normalisation to 3NF for the data depicted in the sample Cleaning Running Sheet
(Document A) and the sample Contract History (Documents B and C - note that documents
B and C are two samples of the same document).
During normalisation, you must:
○ Not add surrogate keys to the normalisation.
○ You should include all attributes (not remove any attribute as derivable)
○ Clearly show UNF, 1NF, 2NF and 3NF.
○ Clearly identify the Primary Key in all relations.
○ Clearly identify the partial and transitive dependencies (if they exist) in all 1NF
relations. You may use a dependency diagram or alternative notation (see the
normalisation tutorial sample solution for a possible alternative representation).
Your attribute names as used in your normalisation and those on your conceptual/logical
models must be consistent i.e. the same name used on each for the same property.
3. Using LucidChart, prepare a FULL conceptual model (Entity Relationship Diagram) for
Monash Cabins (MC).
○ For this FULL conceptual model, include what you see as identifiers (keys) for each
entity, all required attributes and all relationships. This full model will be based on
your feedback from your Part A submission, the normalisation above and further
reading of the case study. It may be necessary to revise/update this model while
developing your logical model in part 4 below.
○ Surrogate keys must not be added to this model . Participation and connectivity
for all relationships must be shown on the diagram .
Page 4 of 8
4. Based on the final full version of your conceptual model, prepare a logical level design for
the Monash Cabins database.
○ The logical model must be drawn using the Oracle Data Modeler. The information
engineering or Crow’s foot notation must be used in drawing the model.
○ All entities depicted must be in 3NF
○ All attributes must be commen ted in the database.
○ Sequences must be used to generate numeric primary keys and check clauses
must be applied to attributes where appropriate.
○ Be sure to include the legend as part of your model.
5. Generate the schema for the database in Oracle Data Modeler and use the schema to
create the database in your Oracle account. The only edit you are permitted to carry out to
the generated schema file is to add header comment/s containing your details (student
name/id) and drop sequence commands.
○ Capture the output of the schema statements using the spool command.
○ Ensure your script includes drop table and sequence statements at the start of the
script.
○ Name the schema file as mc_schema.sql.
Page 5 of 8
Submission Requirements
Due: Monday 27th August (Week 6) 5PM
The following files are to be submitted:
● A single page pdf file containing your initial version of your conceptual model. Name the
file mc_initial_conceptual.pdf . This file must be created via File - Download As - PDF
from LucidChart, do not use screen capture.
Due: Wednesday 12th September (Week 8) 5PM
The following files are to be submitted:
● A single page pdf file containing your final version of your conceptual model. Name the file
mc_conceptual.pdf . This file must be created via File - Download As - PDF from
LucidChart, do not use screen capture.
● A pdf document showing your full normalisation of documents A, B and C showing all
normal forms (UNF, 1NF, 2NF and 3NF). Name the file mc_normalisation.pdf
● A single page pdf file containing the final logical Model you created in Oracle Data Modeller.
Name the file mc_logical.pdf. This pdf must be created via File - Data Modeler - Print
Diagram - To PDF File from within SQL Developer, do not use screen capture.
● A zip file containing your Oracle data modeler project (in zipping these files be sure you
include the .dmd file and the folder of the same name). Name the file mc_oraclemodel.zip.
○ This model must be able to be opened by your marker and contain your full model
otherwise your task 4 will not be marked . For this reason, you should carefully
check that your model is complete - you should take your submission archive, copy it to
a new temporary folder, extract your submission parts, extract your model and ensure it
opens correctly before submission.
● A schema file (CREATE TABLE statements) generated by Oracle Data Modeller. Name the
file mc_schema.sql
● The output from SQL Developer spool command showing the tables have been created.
Name the file mc_schema_output.txt
● A pdf document containing any assumptions you have made in developing the model or
comments your marker should be aware of. Name the file mc_assumptions.pdf
Note that there are seven required files . These files must be zipped into a single zip file named
a1-.zip e.g., a1-xyz123.zip before the assignment due date/time. Submit the
a1-xyz123.zip to Moodle before the due date.
 

热门主题

课程名

mktg2509 csci 2600 38170 lng302 csse3010 phas3226 77938 arch1162 engn4536/engn6536 acx5903 comp151101 phl245 cse12 comp9312 stat3016/6016 phas0038 comp2140 6qqmb312 xjco3011 rest0005 ematm0051 5qqmn219 lubs5062m eee8155 cege0100 eap033 artd1109 mat246 etc3430 ecmm462 mis102 inft6800 ddes9903 comp6521 comp9517 comp3331/9331 comp4337 comp6008 comp9414 bu.231.790.81 man00150m csb352h math1041 eengm4100 isys1002 08 6057cem mktg3504 mthm036 mtrx1701 mth3241 eeee3086 cmp-7038b cmp-7000a ints4010 econ2151 infs5710 fins5516 fin3309 fins5510 gsoe9340 math2007 math2036 soee5010 mark3088 infs3605 elec9714 comp2271 ma214 comp2211 infs3604 600426 sit254 acct3091 bbt405 msin0116 com107/com113 mark5826 sit120 comp9021 eco2101 eeen40700 cs253 ece3114 ecmm447 chns3000 math377 itd102 comp9444 comp(2041|9044) econ0060 econ7230 mgt001371 ecs-323 cs6250 mgdi60012 mdia2012 comm221001 comm5000 ma1008 engl642 econ241 com333 math367 mis201 nbs-7041x meek16104 econ2003 comm1190 mbas902 comp-1027 dpst1091 comp7315 eppd1033 m06 ee3025 msci231 bb113/bbs1063 fc709 comp3425 comp9417 econ42915 cb9101 math1102e chme0017 fc307 mkt60104 5522usst litr1-uc6201.200 ee1102 cosc2803 math39512 omp9727 int2067/int5051 bsb151 mgt253 fc021 babs2202 mis2002s phya21 18-213 cege0012 mdia1002 math38032 mech5125 07 cisc102 mgx3110 cs240 11175 fin3020s eco3420 ictten622 comp9727 cpt111 de114102d mgm320h5s bafi1019 math21112 efim20036 mn-3503 fins5568 110.807 bcpm000028 info6030 bma0092 bcpm0054 math20212 ce335 cs365 cenv6141 ftec5580 math2010 ec3450 comm1170 ecmt1010 csci-ua.0480-003 econ12-200 ib3960 ectb60h3f cs247—assignment tk3163 ics3u ib3j80 comp20008 comp9334 eppd1063 acct2343 cct109 isys1055/3412 math350-real math2014 eec180 stat141b econ2101 msinm014/msing014/msing014b fit2004 comp643 bu1002 cm2030
联系我们
EMail: 99515681@qq.com
QQ: 99515681
留学生作业帮-留学生的知心伴侣!
工作时间:08:00-21:00
python代写
微信客服:codinghelp
站长地图