Presentation is loading. Please wait.

Presentation is loading. Please wait.

Driving School Database

Similar presentations


Presentation on theme: "Driving School Database"— Presentation transcript:

1 Driving School Database
‘Skill-busters’ Access Task

2 A driving school currently use a paper-based system for their records.
When a customer books a lesson, their record card at the driving school is updated.

3 A driving school currently use a paper-based system for their records.
When a customer books a lesson, their record card at the driving school is updated. An example of a record card is shown:

4 A driving school currently use a paper-based system for their records.
When a customer books a lesson, their record card at the driving school is updated. An example of a record card is shown:

5 A driving school currently use a paper-based system for their records.
When a customer books a lesson, their record card at the driving school is updated. The driving school also has record cards for its vehicles and instructors.

6 A driving school currently use a paper-based system for their records.
When a customer books a lesson, their record card at the driving school is updated. The driving school also has record cards for its vehicles and instructors. The record card for each vehicle has information about its registration mark, make, model, year of registration, manual/automatic, availability and notes. The vehicle is either available or unavailable for use by the driving instructors at any one time. Notes for the vehicle are kept about its service history and any damage that is caused.

7 A driving school currently use a paper-based system for their records.
When a customer books a lesson, their record card at the driving school is updated. The driving school also has record cards for its vehicles and instructors. The record card for each vehicle has information about its registration mark, make, model, year of registration, manual/automatic, availability and notes. The vehicle is either available or unavailable for use by the driving instructors at any one time. Notes for the vehicle are kept about its service history and any damage that is caused. The record card for each instructor has information about the instructor’s name, date of birth, gender, date of first employment, date left (if appropriate) and National Insurance number.

8 A driving school currently use a paper-based system for their records.
When a customer books a lesson, their record card at the driving school is updated. The driving school also has record cards for its vehicles and instructors. The record card for each vehicle has information about its registration mark, make, model, year of registration, manual/automatic, availability and notes. The vehicle is either available or unavailable for use by the driving instructors at any one time. Notes for the vehicle are kept about its service history and any damage that is caused. The record card for each instructor has information about the instructor’s name, date of birth, gender, date of first employment, date left (if appropriate) and National Insurance number. The driving school have decided to use a database.

9 A driving school currently use a paper-based system for their records.
When a customer books a lesson, their record card at the driving school is updated. The driving school also has record cards for its vehicles and instructors. The record card for each vehicle has information about its registration mark, make, model, year of registration, manual/automatic, availability and notes. The vehicle is either available or unavailable for use by the driving instructors at any one time. Notes for the vehicle are kept about its service history and any damage that is caused. The record card for each instructor has information about the instructor’s name, date of birth, gender, date of first employment, date left (if appropriate) and National Insurance number. The driving school have decided to use a database. Four entities are to be used INSTRUCTOR, CUSTOMER, VEHICLE and LESSON.

10 Tasks

11 Tasks 1.      Using standard notation show: the primary keys of each table, the name of each data item (field / attribute) for each table, the foreign key(s) that will be used to link the tables together.

12 1. Using standard notation show: the primary keys of each table,
Tasks 1.      Using standard notation show: the primary keys of each table, the name of each data item (field / attribute) for each table, the foreign key(s) that will be used to link the tables together. Standard notation: STUDENT(StudentID, Forename, Surname, Street, Town, County, Postcode …..)

13 Tasks 1.      Using standard notation show: the primary keys of each table, the name of each data item (field / attribute) for each table, the foreign key(s) that will be used to link the tables together. 2.      Draw an entity-relationship diagram for the database indicating the degree of the relationships between the entities

14 Tasks 1.      Using standard notation show: the primary keys of each table, the name of each data item (field / attribute) for each table, the foreign key(s) that will be used to link the tables together. 2.      Draw an entity-relationship diagram for the database indicating the degree of the relationships between the entities

15 Tasks 1.      Using standard notation show: the primary keys of each table, the name of each data item (field / attribute) for each table, the foreign key(s) that will be used to link the tables together. 2.      Draw an entity-relationship diagram for the database indicating the degree of the relationships between the entities

16 Tasks 3.      Draw and complete validation tables for each of the entities containing:

17 Tasks 3.      Draw and complete validation tables for each of the entities containing:

18 Validation Data type Field length Format (Input mask)
Range (Validation rule) Lookup (foreign keys or select from list)

19 Format usually via an Input mask e.g. LL99LLL for car registration
L = letter 9 = digit A = letter or digit …… see the Input Mask sheet on the website for more sometimes a validation rule is used in a combination: Left([TelephoneNumber],1)=0 checks that ……???

20 Range usually via a Validation Rule
DateDiff(“yyyy",[DOB],Date()) > =21 checks that person is over 21 [DOB] is the date of birth field Date() refers to today’s date

21 Tasks 1.      Using standard notation show: the primary keys of each table, the name of each data item (field / attribute) for each table, the foreign key(s) that will be used to link the tables together. 2.      Draw an entity-relationship diagram for the database indicating the degree of the relationships between the entities 3.      Draw and complete validation tables for each of the entities. Draw and complete data structure tables for each of the entities indicating: the primary key the name of each attribute a description of the attribute the data type for each attribute foreign key(s) examples of the data to be stored in each attribute

22

23

24

25 4.      Build a database table structure for the driving school containing:
at least 11 instructors, at least 10 customers, at least 20 lessons, at least 5 vehicles [8]

26 4.      Build a database table structure for the driving school containing:
at least 11 instructors, at least 10 customers, at least 20 lessons, at least 5 vehicles [8] 5.      The driving school want to be able to print various lists about the data.

27 4.      Build a database table structure for the driving school containing:
at least 11 instructors, at least 10 customers, at least 20 lessons, at least 5 vehicles [8] 5.      The driving school want to be able to print various lists about the data. (a) Produce a report to show all future lessons for Nicola Long, including the finishing time of each lesson which is not stored in the database. Include at least three lessons on the list. Identify clearly the date the report was printed [3]

28 4.      Build a database table structure for the driving school containing:
at least 11 instructors, at least 10 customers, at least 20 lessons, at least 5 vehicles [8] 5.      The driving school want to be able to print various lists about the data. (a) Produce a report to show all future lessons for Nicola Long, including the finishing time of each lesson which is not stored in the database. Include at least three lessons on the list. Identify clearly the date the report was printed [3] (b) Produce a report to show all lessons on 29 June 2005 for Merrick Woodward who is one of the driving instructors. There should be at least five lessons [2]

29 4.      Build a database table structure for the driving school containing:
at least 11 instructors, at least 10 customers, at least 20 lessons, at least 5 vehicles [8] 5.      The driving school want to be able to print various lists about the data. (a) Produce a report to show all future lessons for Nicola Long, including the finishing time of each lesson which is not stored in the database. Include at least three lessons on the list. Identify clearly the date the report was printed [3] (b) Produce a report to show all lessons on 29 June 2005 for Merrick Woodward who is one of the driving instructors. There should be at least five lessons [2] (c) Produce a report to show all future lessons grouped by driving instructor. There should be at least 20 lessons. Identify clearly the date the report was printed [2]

30 Evidence Standard notation listing for each entity
Entity Relationship Diagram (showing degrees) (a) ‘4-column’ table for each entity (b) Validation table for each entity (a) Screenshot of design view in Access for each entity (b) Screenshot showing requisite data in each entity Reports as detailed in the task


Download ppt "Driving School Database"

Similar presentations


Ads by Google