Lesson objectives unit 6 advanced databases
-
Upload
gavin-mcintyre -
Category
Technology
-
view
635 -
download
0
Transcript of Lesson objectives unit 6 advanced databases
![Page 1: Lesson objectives unit 6 advanced databases](https://reader034.fdocuments.us/reader034/viewer/2022052410/55538401b4c905da528b54f1/html5/thumbnails/1.jpg)
Unit 6: Advanced Databases
OCR Nationals Level 3
![Page 2: Lesson objectives unit 6 advanced databases](https://reader034.fdocuments.us/reader034/viewer/2022052410/55538401b4c905da528b54f1/html5/thumbnails/2.jpg)
Lesson Objectives
Design a relational database to include: • purpose of database • audience of database • minimum of 3 tables • complete an ERD (entity-relationship) diagram for the
database • normalise data to the 3rd normal form • a user interface to access all parts of the database , (NB: we
will look at this later when the basic database has been set up).
• forms for adding/amending data • designs for reports both printed and on screens, (NB: we will
review t section at a later date also). • data validation
AO1
![Page 3: Lesson objectives unit 6 advanced databases](https://reader034.fdocuments.us/reader034/viewer/2022052410/55538401b4c905da528b54f1/html5/thumbnails/3.jpg)
Lesson Objectives
• S-Cars Database structure• Apply validation rules and input
masks• Import the raw data
AO2
![Page 4: Lesson objectives unit 6 advanced databases](https://reader034.fdocuments.us/reader034/viewer/2022052410/55538401b4c905da528b54f1/html5/thumbnails/4.jpg)
Importing Data
• Some data can be input into the database from the original text files.
• Import the Driver and Customers data using the External Data tab and follow the simple steps.
• However, not all data fits exactly and we must manipulate this data using an APPEND QUERY.
![Page 5: Lesson objectives unit 6 advanced databases](https://reader034.fdocuments.us/reader034/viewer/2022052410/55538401b4c905da528b54f1/html5/thumbnails/5.jpg)
Create a simple query, select only the fields required for tblCars from the raw data bookings.
![Page 6: Lesson objectives unit 6 advanced databases](https://reader034.fdocuments.us/reader034/viewer/2022052410/55538401b4c905da528b54f1/html5/thumbnails/6.jpg)
Select “APPEND” and choose to append to the tblCars.
Ensure that the fields match.
![Page 7: Lesson objectives unit 6 advanced databases](https://reader034.fdocuments.us/reader034/viewer/2022052410/55538401b4c905da528b54f1/html5/thumbnails/7.jpg)
![Page 8: Lesson objectives unit 6 advanced databases](https://reader034.fdocuments.us/reader034/viewer/2022052410/55538401b4c905da528b54f1/html5/thumbnails/8.jpg)
Duplicate fields will have been removed.
![Page 9: Lesson objectives unit 6 advanced databases](https://reader034.fdocuments.us/reader034/viewer/2022052410/55538401b4c905da528b54f1/html5/thumbnails/9.jpg)
Have any cars not been accepted? Why?
![Page 10: Lesson objectives unit 6 advanced databases](https://reader034.fdocuments.us/reader034/viewer/2022052410/55538401b4c905da528b54f1/html5/thumbnails/10.jpg)
Why will the data not import into tblBookings?
![Page 11: Lesson objectives unit 6 advanced databases](https://reader034.fdocuments.us/reader034/viewer/2022052410/55538401b4c905da528b54f1/html5/thumbnails/11.jpg)
We must have a composite primary key,so that a customer can make multiple bookings.
Are these correct? Why? Why not?What would you choose?
![Page 12: Lesson objectives unit 6 advanced databases](https://reader034.fdocuments.us/reader034/viewer/2022052410/55538401b4c905da528b54f1/html5/thumbnails/12.jpg)
![Page 13: Lesson objectives unit 6 advanced databases](https://reader034.fdocuments.us/reader034/viewer/2022052410/55538401b4c905da528b54f1/html5/thumbnails/13.jpg)
Evidence to be submitted
With one screen dump per A4 page, provide:• A screen dump showing the entities and
relationships in your database system.• For each table, a screen dump showing the table
structure you have created, including field names and data types.
• Printouts or screen dumps of all tables after import, showing either at least twenty records or the whole file (whichever is the smaller). This must be done before any other data is entered.
• On one A4 page, produce a table listing the rejected records and explaining why each is invalid.
![Page 14: Lesson objectives unit 6 advanced databases](https://reader034.fdocuments.us/reader034/viewer/2022052410/55538401b4c905da528b54f1/html5/thumbnails/14.jpg)
Add, Edit and Delete Records
• Create a basic form for each table and show evidence that you have added, edited and deleted records.
AO2
![Page 15: Lesson objectives unit 6 advanced databases](https://reader034.fdocuments.us/reader034/viewer/2022052410/55538401b4c905da528b54f1/html5/thumbnails/15.jpg)
For example, add a new customer, new car and new booking using the simple form you have created.Evidence of this can be given in screenshots. NB: These basic forms are evidence for AO2, but we will customise them later for AO4.
![Page 16: Lesson objectives unit 6 advanced databases](https://reader034.fdocuments.us/reader034/viewer/2022052410/55538401b4c905da528b54f1/html5/thumbnails/16.jpg)
Lesson Objectives
• Develop the S-Cars Database by creating queries based on actual business scenarios, including calculating monthly wages and finding bookings.
AO3
![Page 17: Lesson objectives unit 6 advanced databases](https://reader034.fdocuments.us/reader034/viewer/2022052410/55538401b4c905da528b54f1/html5/thumbnails/17.jpg)
Scenarios
• A customer, “Amaren”, would like to know all of the makes of car that will allow a party of more than 10 and cost less than £180.
• A business customer, “Copley”, would like to have a list of all previous bookings.
• The manager would like to find out the most popular car type.
• The manager would like to find out the most popular month for booking cars.
• A driver, “Wilson”, would like to know how many sessions he has worked since he started with the company.
AO3
![Page 18: Lesson objectives unit 6 advanced databases](https://reader034.fdocuments.us/reader034/viewer/2022052410/55538401b4c905da528b54f1/html5/thumbnails/18.jpg)
Scenarios
• The manager would like to know the most popular car.
• The accountant would like a grand total for all bookings for 2003. In addition he would like to have the Vat paid for each booking in 2003.
• The manager would like to find the most popular session.
• The manager would like to find each driver’s sessions totals.
AO3
![Page 19: Lesson objectives unit 6 advanced databases](https://reader034.fdocuments.us/reader034/viewer/2022052410/55538401b4c905da528b54f1/html5/thumbnails/19.jpg)
Query conditions can include comparisons based on:
• = (equal to) • < (less than)• > (greater than) • <>, >=, <= • the logical operators AND, OR and
NOT;
![Page 20: Lesson objectives unit 6 advanced databases](https://reader034.fdocuments.us/reader034/viewer/2022052410/55538401b4c905da528b54f1/html5/thumbnails/20.jpg)
Lesson Objectives
• Create the user interface to manage your system.
The system must enable a user to:• add and edit customer details• add and edit driver details• add and edit car details• add and edit booking details• Access other relevant information and
functions
AO4
![Page 21: Lesson objectives unit 6 advanced databases](https://reader034.fdocuments.us/reader034/viewer/2022052410/55538401b4c905da528b54f1/html5/thumbnails/21.jpg)
Lesson Objectives
• Create reports based on the queries you have provided.
• You must incorporate sorting on single and multiple fields and grouping on a single and multiple fields.
• You must create one report that shows grouped and overall summaries.
AO5
![Page 22: Lesson objectives unit 6 advanced databases](https://reader034.fdocuments.us/reader034/viewer/2022052410/55538401b4c905da528b54f1/html5/thumbnails/22.jpg)
Lesson Objectives
• Create a formal business letter for customers who have outstanding payments.
• Mail merge the “Outstanding Payments” query with the letter.
AO5
![Page 23: Lesson objectives unit 6 advanced databases](https://reader034.fdocuments.us/reader034/viewer/2022052410/55538401b4c905da528b54f1/html5/thumbnails/23.jpg)
Lesson ObjectivesOnce a month the system must produce: • invoices for all outstanding payments (outstanding means those bookings which have taken
place but haven’t yet been paid for)• a list of all the invoices produced, and the amount of each, with a total of how much money
has been invoiced that month.An invoice must include at least the following:• S-Cars name, address and logo, telephone number, fax number • the word ‘INVOICE’• the booking numbers (it is possible that a customer may have more than one booking
payment outstanding)• the customer’s ID number, name and address to which the invoice will be sent• an itemised list of all bookings by that customer showing for each booking the registration
number, date and cost (Note that cost is the total cost of hiring that vehicle and not necessarily cost per session.)
• the total cost of all the itemised hires exclusive of VAT• the amount of VAT (charged at 15%)• the total including VAT.• For invoices with payments outstanding for more than three months the following statement
should be printed in red on the bottom:• “Please note that this invoice contains payments which have been outstanding for over three
months. Please pay within the next 14 days to avoid legal action”.
AO5
![Page 24: Lesson objectives unit 6 advanced databases](https://reader034.fdocuments.us/reader034/viewer/2022052410/55538401b4c905da528b54f1/html5/thumbnails/24.jpg)
Lesson Objectives
AO7 – Testing• Produce a test plan covering the following
checks: e.g. • database meets original design brief • validation • forms • queries • Reports
• Changes are made as appropriate to the database.
AO7
![Page 25: Lesson objectives unit 6 advanced databases](https://reader034.fdocuments.us/reader034/viewer/2022052410/55538401b4c905da528b54f1/html5/thumbnails/25.jpg)
Lesson Objectives
User Documentation• Produce a user guide.• Produce a technical guide for the database• “A technical manual should also be
produced containing information about details of the hardware, software and other resources required, a detailed entity-relationship diagram, a detailed data dictionary and details of validation and verification procedures. “
AO6
![Page 26: Lesson objectives unit 6 advanced databases](https://reader034.fdocuments.us/reader034/viewer/2022052410/55538401b4c905da528b54f1/html5/thumbnails/26.jpg)
Lesson Objectives
AO8 – Evaluation• Evaluate the database against the
user needs, (purpose and audience), and database specification.
• Describe improvements needed for the user.
AO8