Homework 99 Fall 05
Homework 99 Fall 05
For this assignment, store all electronic files containing results for this homework sets in
at least two places (for redundancy), for example your U: drive as well as a 3 ½” diskette.
To conserve space, compact Access databases often, at least once every session.
In class on Tuesday, September 21, 1999, we discussed the Elizabeth Forward School
District school bus garage case. We ended the discussion by inspecting an Entity-
Relationship diagram and a relational database design, along with sample data for some
of the tables.
In this problem you are asked to create a database in Access that represents all elements
of the E-R diagram and the relational database design for the school bus garage case. This
database will also include forms for data entry. The database should be called
“BusGarageXXXX.mdb, where “XXXX” are the last four digits of your student ID.
(a) The database should consist of tables corresponding to all tables in the relational
database schema (including code tables).
Each table should be given a simple, concise name. I suggest using the “Hungarian”
notation, in which table names are preceded by the prefix “tbl”, followed by a noun
which refers to the entity in question, followed by one or more adjectives if
necessary. For example, the table corresponding to the entity “BUS” could be called
“tblBus”.
Every field in every table should have an appropriate data type and complete
description. In particular the field description should indicate if the field is a foreign
key from another table, and if so, the name of the table. Each non-code table should
have at least two fields, one a key field.
(b) The database should implement the relationships in the E-R diagram through the
Relationships window. Do not choose the Access options "Cascade Updates" or
"Cascade Deletes."
Verify that the relationships are in effect by trying to add a record in a table with a
foreign key for which the value entered in the foreign key field does not exist in the
associated table.
2
(c) The database should have forms for data entry and inspection that correspond to
every non-code table. Conventions for the forms are as follows:
(d) Your database should contain data for all tables as contained in the case solution
handed out in class and in the spreadsheet r:\academic\90728\BusGarageData99.xls.
Data may be transferred from the spreadsheet to the Access database in two ways:
In Excel, select and copy all cells in the current worksheet (e.g. the worksheet
corresponding to the BUS entity); paste the copied cells to a new Access table
in datasheet view; delete the first row (column headers from the worksheet)
In Access, select the Tables tab; select New, choose Import Table from the list
of options, navigate to the location of BusGarageData99.xls, and follow the
directions provided by Access to import Excel worksheets.
3
(e) You should test your database by entering new data through the forms and observing
values of calculated fields.
(f) Switchboards or other measures to guide the user about the different forms in the Bus
Garage application are not necessary.
(g) No queries or reports are required for the Bus Garage application.
Recall the Health Inspections problem of Homework #4. Here, you should:
List all important decision points (HINT: the problem description includes as
an inspection outcome the immediate revocation of an establishment);
Create an appropriate decision tree;
Notate each branch as follows: text above the branch designates the outcome
of a decision point; text below the branch designates the applicable permit
code (if one exists).