Scenario
The Leith Emeare Geriatric Homes provides serviced apartments for elderly citizens at its mulit-story complex in Central Tasmania. Leith Emeare also operates the Knott Wheel Clinic and In-Care Unit where its residents can receive high quality health care without having to leave their building for treatment. Knott Wheel has both a clinic where residents can see a clinician (either a Doctor or a Nurse) and receive treatment, and a In-Care Unit for residence who need hospital-like care. The Knott Wheel Clinic and In-Care Unit has a number of doctors and nurses who can provide treatment both at the Clinic and in the In-Care Unit.
The In-Care Unit has four specialist areas, each located on a different floor of the centre. Each specialist area has several well-equipped rooms.
The Knott Wheel Clinic and In-Care Unit has had an Oracle database developed using some test data, but the developer has left leaving only minimal documentation. You have been asked to take over the database, and to provide facilities so that user queries can be answered.
Task Description
The Knott Wheel Clinic and In-Care Unit regrets that the previous developer failed to complete the database implementation as originally planned, and even more, the failure to document what little work was actually carried out. The only documentation that exists is the following E-R diagram, plus the table definitions and test data contained in the SQL script file Ass2Setup.sql.
The Knott Wheel Clinic and In-Care Unit regards it as essential that all further work done on the database be documented in a formal business report prepared in accordance with normal professional business practice.
The report is to have a one page Introduction that identifies what has been achieved, and what (if anything) remains to be done. Each specific requirement (or question) is to be documented on a fresh page, and should have the question number as the major heading, with sub-headings for (1) the SQL script, (2) the query results, and (3) comments which describe what your script does.
Each question is to be constructed through an SQL script with the following typical structure (this is in fact a model answer to requirement 1):
The file question.sql (and also Ass2Setup.sql) can be downloaded from the Assessment page on the unit’s MyLO site. Both files should be stored on the same drive, and in the same directory, as should your answer scripts to each question. It (question.sql) must be run at the start of each question answer (and provided with the appropriate question number) in order to identify you as the user, plus the date/time and location of your test run, plus identify which requirement you are attempting to meet. Your output for each question should be spooled to a file (here assumed to be on ‘D: drive’, but you can use whatever drive you wish). The content of these spool files should be listed as part of your report. The execution of the question.sql script results in the following typical introduction to each spool file:
The company is aware that some of the requests might prove difficult, and accordingly asks that if you encounter a problem, that you provide scripts that are partial solutions, on the basis that something is better than nothing. It does ask, however, that your report’s Introduction highlight any such problems.
---------------------------------------未完待续------------------------------------------