Sunteți pe pagina 1din 19

Lecture 5 Part 1

The Case Study


The University Parking Office

Objectives
The purpose of this lecture and case
study is to provide you with experience in
analyzing, designing and implementing a
solution for a university parking office.
In this lecture your lecturer will help you
to understand the nature and purpose of
database analysis and design. This
lecture offers you experience in designing
a database for The University Parking
Office.
2

Problem Description - The


University Parking Office Case Study
University parking office requires you
to design a database to assist with
the administration of the office.
The requirements collection and
analysis phase of the database design
process has provided the following
data requirements specification for
the university parking office
database.
3

University parking office stores the


details of each student and staff of
the university.
These details about students
include: student number, name (first

and last name), home address (street,


city, postcode), mobile phone number,
email address, date of birth, gender,
category of student (i.e. undergraduate
or postgraduate), nationality, special
needs, any additional comments, the
course the student is enrolled in and
their vehicle registration number, vehicle
type, make and model.
4

Staff details include: staff number,


name (first and last name), home
address (street, city, postcode),
mobile
phone
number,
email
address, date of birth, gender,
category of staff (i.e. full time staff
or part time staff), office telephone
number and office.

Student information stored for a


car park permit relates to those
currently parking in university car
parks.
Each university car park at the
university has a car park number,
name, location number, location
address, size, capacity, type
(general parking or reserved
parking) and a manager, who
supervises the operation of the car
park.

Each university car parks provide


general
parking
and
disabled
parking. University parking office
offers reserved car parking. These
are
fully
covered
car
parks.
Reserved car parks provide reserved
parking and disabled parking. Each
car parking space in each car park
has a car space number, car park
number, and monthly fee. The car
space number and car park number
together uniquely identifies each car
park space in a car park.
7

A student of university may purchase a


permit for using university car parks at
the university for a period of time.
Parking agreements are negotiated at
the start of each academic year, with a
minimum rental period of one month and
a maximum rental period of one year,
which includes semesters 1 and 2.
Each individual parking agreement
between a student or staff and the
university parking office is uniquely
identified using a parking lease number.
8

The data stored on each lease


includes: the lease number,
duration of the lease, student name
and student number, for students,
parking type and Start date (i.e the
date the student wishes to start
using university car parks) and the
end date (i.e the last day a student
is allowed to use university car
parks).
9

At the start of each semester, each


student is sent an invoice for a
parking period based on car
parking lease they have signed.
Each invoice has a unique invoice
number.

10

The data stored about each invoice


includes the invoice number, lease
number, start and end date for use
of parking, payment due date,
student full name and student
number, type of car parking
requested and the staff number of
staff that issued the invoice.

11

Additional data is held about


payments of invoices and that
includes the date the invoice was
paid, the method of payment
(check, cash, Visa card), staff
number of staff at the university
parking office car parking that
processed the payment, amount
and student number of student
that made the payment.

12

University car park office offers


several types car parks with
different prices.
Car park membership price is $600
for students per year. There are
also weekly memberships.

13

The details and cost of memberships are:

Disabled car parking fees are the same as general


parking fees.
14

Requirements
For this scenario:
Identify entity types and their
attributes, including the primary
keys for each entity.

15

Solution
Student (StudentNo, firstName,
lastName, streetNo, streetName,
city, postcode, mobileNo,
emailAddress, DateOfBirth, gender,
studentCategory (i.e.
undergraduate or postgraduate),
nationality, specialNeeds,
comments, courseNo,
RegistrationNo)
16

Staff (StaffNo, firstName,


lastName, streetName, streetNo,
city, postcode, mobileNo,
emailAddress, DateOfBirth, gender,
staffCategory (i.e. full time staff or
part time staff), officeTelNo,
officeNo)
Vehicle (RegistrationNo, type,
make, model)
17

CarPark (CarparkNo, name,


locationNo, locationAddress, size,
capacity, type (general parking or
reserved parking), StaffNo
(StaffNo of staff managing the
carpark))
CarparkType(CarParkTypeNo,
CarParkNo, MonthlyFee, Type (general
parking, reserved parking or
disabled parking type))
18

StudentParkingLease
(StudentParkingLeaseNo,
StudentNo, AmountPaid,
CarParkTypeNo, StartDate,
EndDate, StaffNo)
StudentInvoice(StudentInvoiceNo,
StudentNo, StaffParkingLeaseNo,
PaymentDueDate, StaffNo)
StudentPayment(PaymentNo,
DatePaid, MethodOfPayment,
StaffNo, AmountPaid, StudentNo)

19

S-ar putea să vă placă și