ICT285 2022 TJ Assignment 1
ICT285 2022 TJ Assignment 1
Submission Instructions:
Please submit a single word document using the link in Moodle. The due date is on LMS. You do
not need to include a separate cover sheet, but you should include your name and student number
as part of your document filename. Your name and student number should also be included within
the assignment document.
b. You have been given the following specifications of a simple database for a netball
association that keeps record of players, teams and matches.
Player Match
Team
PK PlayerID PK MatchID
PK TeamID
FirstName Date
LastName TeamName Result
DateOfBirth Grade FK1 HomeTeamID(FK)
FK1 TeamID AwayTeamID(FK)
Give the SQL to create the Match table. You may assume that the Player and Team tables
have already been created, and that the PlayerID and TeamID colums are of the data type
VARCHAR2(5). The result of the match refers to the result for the HomeTeam and can be
only W, L or D (win, lose or draw). (5 marks)
c. Your match table must also include record the scores of both teams in the match. Provide
the SQL to amend the original table design to allow for this change in requirement. It is
most unlikely (impossible) that a team would ever score more than 999 goals in a match. (3
marks)
Question 4: Normalisation (20 marks)
The following question is based upon the Patient-Treatment relation which records the details of
transactions occurring in a medical surgery. You may assume the data are representative.
You have been asked to design a relational database for this system. You know that there are
problems with the current design and that it will need to be modified in order to work effectively.
You need to write a 1-2 page report that addresses the following:
1. What are the specific problems associated with the current design and why do they arise?
2. How would you change the current design and how does your new design address the
problems you have identified with the current design.
In order to receive high marks for this question, you will need to demonstrate an understanding of
the theories discussed in Topics 1, 2 and 3, how they apply to this problem, and justify the changes
you are making to the system. Simply providing the amended design (even if it is correct) will only
attract a small percentage of the marks for this question.
Question 5: Conceptual Design (25 marks)
Terrific Airlines is a newly formed airline aimed at the burgeoning market of clandestine travellers
(fugitives, spies, confidence tricksters, scoundrels, deadbeats, cheating spouses, politicians, etc.).
Terrific Airlines needs a database to track flights, customers, fares, airplane performance, and
personnel assignment. Since Terrific Airlines is promoted as a “…fast way out of town,” individual
seats are not assigned, and flights of other carriers are not tracked. More specific notes about
Terrific Airlines are listed below:
Information about a route includes its unique number, its origin, its destination, and estimated
departure and arrival times. To reduce costs, Terrific Airlines only has non-stop flights with a
single origin and destination.
Flights are scheduled for a route on one or more dates with an airplane and a crew assigned to
each flight, and the remaining capacity (seats not taken) noted. In a crew assignment, the
employee number and the role are noted. It is a government requirement that the number of
hours that flight crew (i.e., pilots, co-pilots, engineers) are in flight must be recorded. There is
no such requirement for Non-flight crew (e.g., attendants).
Airplanes have a unique serial number, a model, a capacity, and a next-scheduled-
maintenance date.
The maintenance record of an airplane includes a unique maintenance number, a date, a
description, the serial number of the plane, and the employee responsible for the repairs.
Employees have a unique employee number, a name, a phone, and a job title.
Customers have a unique customer number, a phone number, and a name (it may or may not
be their own).
A record is maintained of flight reservations including a unique reservation number, a flight
number, a customer number, a date, a fare, and the payment method (usually cash but
occasionally some else’s cheque or credit card). If the payment is by credit card, a credit card
number and an expiration date are part of the reservation record.
What you have to do:
1. Create an entity-relationship diagram showing the data requirements of the system. Your
ERD should be able to be implemented in a relational DBMS. You should use the ERD
notation we have been using in the lectures, and should include a legend to explain the
notation. You should include attributes in the ERD. The use of a drawing tool such as Visio
will make this task easier. However, whichever tool you use, you must copy and paste the
ERD into a word-processed document. This is because your tutor might not have access to
the tools you have used. Please note that hand-drawn ERDs are not acceptable.
2. List and explain any assumptions you have made in creating the data model.