1 Driving School
1 Driving School
A Driving School stores the details of their instructors and their customers on a
database. The database is used to find the most suitable driver for the customer,
and to record the details of the next lesson the customer is having.
The information stored by the Driving school is as follows:
Instructor Name
M/F
Instructor Address
Instructor Town
Instructor Phone Number
Car Make
Car Model
Transmission Type
Customer Name
Customer Address
Customer Town
Lesson Date
Time of Lesson
Length of lesson (hrs)
TASK 1
Write down formally the ENTITIY and attributes.
Normalise the Entity to 1NF. Note the Primary Key and any Foreign key fields.
Remember you will have to make sure there is a field that links both tables
together so that you can form a relationship between them.
Check your solution with the teacher before continuing.
TASK 2
Create a Data Dictionary for both tables showing the field names, data types and
any validation.
Check your solution with the teacher before continuing.
TASK 3
Create an E-R Diagram showing the relationship between the Entities.
INT II DATABASE
DRIVING SCHOOL
PAGE 1
TASK 4
(a) Create the database using your software package.
(b) Create the relationship between the tables.
(c) Create a user-friendly interface to enter the data make sure that the all
names are surname first followed by initial eg: Lambergini A
Data for Driving Instructors Table
Instructor
Name
A Lambergini
M/F
Address
Town
Cookton
Phone
Number
0331549976
Car
Make
Kissan
Car
Model
Kuddle
Transmission
Type
Automatic
A Smith
D Funk
D Hill
H Singh
F
M
F
L Jones
L MacKenzie
M
F
N Ahmed
P Destrian
M
F
S Fazlani
5 Carnival
Crescent
12 The
Smithy
55 Daisy Lane
78 Poppy Lane
4 Brown
Street
99 Elgar Road
34 Jubilee
Crescent
12 Pansy Close
15 Mozart
Avenue
39 Sunflower
Street
Blairton
0221443567
Fjord
Arran
Manual
Cookton
Hagueton
Cookton
0331559178
0331556123
0331559978
Vauxord
ALV
Vauxord
Calastra
3 Series
Cavacort
Manual
Manual
Manual
Cookton
Blairton
0331442567
022112266
ALV
Vauxord
15 Series
Cavacort
Automatic
Manual
Haugeton
Haugeton
0331566677
0331556677
Kissan
Fjord
Huddle
Wight
Automatic
Manual
Haugeton
0331573567
Vauxord
Calastra
Manual
Address
Town
Lesson Date
A Bell
A Doughnut
A Scott
A Sellerator
12 Robb Court
1 Rubbani Way
44 Fish Lane
6 The Highway
Haugeton
Haugeton
Haugeton
Blairton
A Sump
Haugeton
A Teen
18 East End
Drive
9 Milton Way
Todays date
Todays date
Todays date
Tomorrows
date
Todays date
Blairton
AN Island
88 Ramsay Bay
Haugeton
INT II DATABASE
Time of
lesson
08:30:00
09:30:00
10:00:00
15:00:00
Length of
lesson (hrs)
1.00
1.00
2.00
1.50
Instructor
12:00:00
0.75
S Fazlani
Tomorrows
date
09:00:00
1.50
L MacKenzie
Tomorrows
date
14:00:00
0.75
S Fazlani
DRIVING SCHOOL
PAGE 2
N Ahmed
N Ahmed
P Destrian
A Smith
B Bailey
B Clinton
C Lutche
|INA BakkSeat
K Patterson
L Robb
M BrakkPDal
M Lewinski
M Mouse
N Rafy
T Bahagg
13 Summer
Street
1 Washington
Drive
33 Academy
Road
11 Ramsay Bay
Blairton
Todays date
11:0:00
1.00
A Smith
Blairton
Tomorrows
date
Tomorrows
date
Todays date
18:00:00
1.00
A Smith
16:00:00
1.00
P Destrian
17:00:00
1.00
S Fazlani
5 Washington
Drive
23 South
Street
20 Fish Lane
Blairton
18:00:00
1.00
L MacKenzie
Blairton
Tomorrows
date
Todays date
09:00:00
1.00
A Smith
Cookton
Todays date
20:00:00
1.00
L Jones
16 Press Lane
38 South
Street
3 Waterloo
Avenue
1 Ramsay Bay
Cookton
Haugeton
Todays date
Tomorrows
date
Todays date
09:00:00
11:30:00
1.00
0.75
L Jones
S Fazlani
13:00:00
1.00
H Singh
Tomorrows
date
16:30:00
1.00
N Ahmed
Haugeton
Haugeton
Cookton
Haugeton
Create a Report for both tables showing all fields. Choose a suitable layout for
your report, eg we do not wish to print one record on each page so try to fit as
many records as possible onto one page. Give your report a suitable heading and put
your name on as a footer. Print.
Queries and Manipulations
Create new reports for each search result, remember to give them appropriate
names and include your name as a footer.
a)
b)
c)
INT II DATABASE
DRIVING SCHOOL
PAGE 3
d)
N Ahmeds illness means he has to give up his job. Remove his name from
the instructors file. His customers have been passed to P Destrian.
Amend the customer file to show this.
Mrs Jones needs an instructor with a Vauxord or a Fjord car. Find out
the instructors she could use. Sort the results by surname.
INT II DATABASE
DRIVING SCHOOL
PAGE 4