DATABASE SYSTEMS
ASSIGNMENTS
GROUP WORK 3 – 5 Students
WEIGHTAGE: 30%
Introduction to Assignment
You are part of a consultancy company that specialises in the provision of database applications. The Director of a
company has recently approached you to undertake a project to design and implement a database management system
for them.
Notes
The information presented in the case study is an overview of how business is conducted. As the information
described in the case study is an overview and ambiguous in places, it will be necessary for you to make your
own assumptions about certain aspects of the case study. Your assumptions should be clearly stated in your
assignment submission.
Assignment Requirements
Database Conceptual Design
1. Create an Entity–Relationship (ER) model of the data requirements for the given case study using the UML
notation.
Submit Entity Relationship Diagram
SUBMISSION DATE: 02 June 2020
Database Implementation
1. Based upon Entity Relationship Diagram of Assignment 01, create tables for the database. Ensure that
referential integrity is established between related tables.
2. Enter some test data (approximately 3 – 5 rows) into each table.
Submit DDL and DML Statements
SUBMISSION DATE: 05 June 2020
Database Queries
Before starting this section, please ensure that your tables contain sufficient data to enable you to test the queries
described in the case study.
Submit DML Statements
SUBMISSION DATE: 11 June 2020
Marking Scheme
The assessment of this Assignment will be carried out on the following components of the work.
Database Conceptual Design (30)
Database Implementation (15)
Database Queries (15)
The Saeed Driving School Case Study
The Saeed Driving School was established in Islamabad in 1998. Since then, the school has
grown steadily and now has several offices in most of the main cities of Pakistan. However, the
school is now so large that more and more administrative staff are being employed to cope with
the ever-increasing amount of paperwork. Furthermore, the communication and sharing of
information between city offices is poor. The Director of the school feels that too many mistakes
are being made and that the success of the school will be short-lived if he does not do something
to remedy the situation. He knows that a database could help in part to solve the problem and has
approached you and your team to help in creating a database system to support the running of the
Saeed Driving School
of Motoring. The Director has provided the following brief description of how the
EasyDrive School of Motoring operates.
Data Requirements
Each city office has a Manager, several Instructors and administrative staff. The Manager is
responsible for the day-to-day running of the office. Clients must first register at an office, which
includes completion of an application form, which records their personal details. Before the first
lesson, a client is requested to attend an interview with an Instructor to assess the needs of the
client and to ensure that the client holds a valid provisional driving license. After the interview,
the first lesson is booked. Clients can request selected particular lessons. Each lesson is for
one hour, which begins and ends at the office. A lesson is with a particular Instructor in a
particular car at a given time. Lessons can start as early as 8:00 a.m. and as late as 8:00 p.m.
After each lesson, the Instructor records the progress made by the client and notes the mileage
used during the lesson. The school has a pool of cars for the purposes of teaching. Each
Instructor is allocated to a particular car. The cars are inspected at regular intervals for faults.
Once ready, a client applies for a driving test date. To obtain a full driving license, the client
must pass the driving test. It is the responsibility of the Instructor to ensure that the client is best
prepared for all aspects of the test. If a client fails to pass, the Instructor must record the reasons
for the failure
Query Requirements
The director has provided the list of following typical queries that the database system must
support:
a) The names and the telephone numbers of the Managers of each office.
b) The full address of a particular office.
c) The names of all female Instructors based in the Islamabad and Lahore office.
d) The total number of clients (past and present) in each city
e) The timetable of appointments for a given Instructor next week.
f) The details of interviews conducted by a given Instructor.
g) The total number of female and male clients (past and present) in the Islamabad office.
h) The registration number of cars that have had no faults found.
i) The registration number of the cars used by Instructors at the Islamabad and Lahore office.
j) The names of clients who passed the driving test in January 2019.
k) The average number of miles driven during a one-hour lesson