BUS 145 – Database Project – Part 2
Build and Test
The build and test process consists of:
creating tables
adding fields
customizing field properties
verifying the logic of the database
testing field properties
creating lookups
establishing referential integrity
adding data records
Getting Started
1. Create a new blank database in Access and save it using your name as the
file name.
2. Set the database to Automatically Compact on Close
(File |Options / Current Database).
Building the Database
Using your ERD, Table Maps, and Data Dictionary, carry out the following tasks
(follow the suggested order to simplify the process):
1. Create the required tables. Table names should not contain spaces.
2. Add a Primary Key to each table. Make sure that your Primary Keys are
independent of the data used for day-to-day business.
3. Include a foreign key (common field) in the tables that will link to other
tables.
4. Create the attributes (fields) for each table. Field names should be fully
qualified (i.e. the table name should be included as part of the field name.
Field names should not contain spaces (e.g. CustomerLastName)).
5. Use at least six different data types, including at least one number field,
one date and time field, and one currency field (not necessarily all in the
same table).
6. Add a caption for each field where necessary and customize the
properties of table fields to ensure data integrity using the following field
properties at least once: format, input mask, default value, validation rule,
validation text, required, index.
7. Enter at least five test records into each of your main tables (i.e. those
that do not contain foreign keys) and test the field properties to make
sure that your input masks, validation rules, etc. work as planned.
8. Use the Lookup Wizard to create list lookups for each field that will
contain a limited set of data. For example, you might create a list of
payment methods such as Visa, MasterCard, Amex, Debit, Other.
Establishing Relationships
1. Complete the entry of your text records before you complete this step.
Use the Lookup Wizard to create table lookups for all Foreign Key fields.
All of your table lookups should return meaningful data i.e. a customer
name or a service name. Table lookups should NOT return Primary Key
values. Access will automatically create the necessary relationships
between tables where a table lookup has been established.
2. Use the Relationships window to enforce referential integrity and apply
the Cascade Update option where appropriate – make sure that you have
built all of your table lookups before working on table relationships.
Consultation
Arrange for your instructor to verify that the database logic, keys, and
lookups are all functional before continuing.
Data Entry
Data records need to be added to your system in order to obtain meaningful
repo ...
BUS 145 – Database Project – Part 2 Build and Test The.docx
1. BUS 145 – Database Project – Part 2
Build and Test
The build and test process consists of:
Getting Started
1. Create a new blank database in Access and save it using your
name as the
file name.
2. Set the database to Automatically Compact on Close
(File |Options / Current Database).
2. Building the Database
Using your ERD, Table Maps, and Data Dictionary, carry out
the following tasks
(follow the suggested order to simplify the process):
1. Create the required tables. Table names should not contain
spaces.
2. Add a Primary Key to each table. Make sure that your
Primary Keys are
independent of the data used for day-to-day business.
3. Include a foreign key (common field) in the tables that will
link to other
tables.
4. Create the attributes (fields) for each table. Field names
should be fully
qualified (i.e. the table name should be included as part of the
field name.
Field names should not contain spaces (e.g.
CustomerLastName)).
5. Use at least six different data types, including at least one
number field,
3. one date and time field, and one currency field (not necessarily
all in the
same table).
6. Add a caption for each field where necessary and customize
the
properties of table fields to ensure data integrity using the
following field
properties at least once: format, input mask, default value,
validation rule,
validation text, required, index.
7. Enter at least five test records into each of your main tables
(i.e. those
that do not contain foreign keys) and test the field properties to
make
sure that your input masks, validation rules, etc. work as
planned.
8. Use the Lookup Wizard to create list lookups for each field
that will
contain a limited set of data. For example, you might create a
list of
payment methods such as Visa, MasterCard, Amex, Debit,
Other.
4. Establishing Relationships
1. Complete the entry of your text records before you complete
this step.
Use the Lookup Wizard to create table lookups for all Foreign
Key fields.
All of your table lookups should return meaningful data i.e. a
customer
name or a service name. Table lookups should NOT return
Primary Key
values. Access will automatically create the necessary
relationships
between tables where a table lookup has been established.
2. Use the Relationships window to enforce referential integrity
and apply
the Cascade Update option where appropriate – make sure that
you have
built all of your table lookups before working on table
relationships.
Consultation
Arrange for your instructor to verify that the database logic,
keys, and
lookups are all functional before continuing.
5. Data Entry
Data records need to be added to your system in order to obtain
meaningful
reports. The following minimum data entry requirements should
provide you
with enough data. Enter your data in the order specified below.
1. 10 records for each Primary Entity (e.g. 10 Customers and 10
Services)
2. 5 Records for each Staff or Repair Entity (if applicable)
3. 100 Transactions (i.e. Join Table Records)
Submission Instructions
1. Print the mark sheet and hand in to your instructor at the
beginning of
class on the assignment due date. The project will not be graded
unless a
printed copy of the report is submitted to your instructor by the
due date.
2. Upload your Access project file to your instructor’s inbox on
labdatashares OR to the drop box in D2L as specified by your
instructor.
Mark Sheet for Database Build and Test
6. Name:
_____________________________________________________
__
Database Construction:
Database automatically compacts on
close............................................................ /1
Tables:
Table Names
......................................................................................... ......
......... /1
Primary and Foreign Keys
...................................................................................... /4
Fields:
Fully Qualified Field Names
................................................................................... /2
Data Types (6)
...............................................................................................
......... /3
Field Sizes
...............................................................................................
............ /3
Field Properties (at least two examples of each property)
................................... /8
7. Lookups and Relationships:
List Lookups (one example)
.................................................................................. /1
Foreign Key Lookups (i.e. Combo Boxes created using the
lookup wizard) ......... /5
Relationships established with referential integrity enforced
............................ /2
Data Entry:
100 Transactions
...............................................................................................
... /10
10 Records for each Primary Entity (Customers, Services)
.................................... /5
Additional Records (e.g. Staff, Repairs, Additional
8. Transactions, etc.) ................. /5
TOTAL
...............................................................................................
.. /50
Project Overview
Car Rental
Statement of Purpose
To keep track of business operation specifics. For example: who
the clients are, payment amounts, payment types, cars being
rented, whether clients are individual or large companies, etc.
Reports
1. The most popular cars rented.
2. The average rental length.
3. The most popular season for rentals.
4. The frequency for types of cars rented.
5. How customers usually pay.
6. What percentage of income comes from large company
rentals.
7. The average cost for clients to rent moving trucks.
8. The average age of individual rentals.
9. The percentages of client occupations that are employed. (vs
self-employed or student).
10. The average annual repair costs.
Business Processes
1. Rental length
(daily, weekend, weekly, monthly)
2. Maintenance costs
(monthly)
3. Client payment amounts and types of payment
(Mastercard, Cash, VISA)
9. 4. Post-rental car check-up
(charges for customer if damage is found and maintenance
information (over mileage charges etc.)).
5. Client information and frequency
6. Employee wages
7. Requested rental car class and mileage allowance
8. Promotions
(based on popular season/customer loyalty/large
companies)
Data model
Primary entities
· Car rented
· Payment
· Clients
· Promotion
Car rented relates with payment made by clients and depending
the car rented, clients get promotions.Therefore,car rented
relate to payment and promotion, payment relate to clients and
car rented, clients relate to promotions and car rented while
promotion relate to clients and car rented.
ERD
11. Table Map
Car rented
Car type
length rented
maintenance cost
post-rental check
Car class requested
Payment
Payment type
Payment amount
MasterCard
Cash
Visa
Categories
Client payment
Employee wage
daily
weekend
weekly
monthly
Name
Date of birth
Location
email address
Occupation
clients
12. clients information
type of clients
Categories
small cars
Trucks
Promotions
popular seasons
customer loyalty
large companies
Categories
Companies
individuals
13. Data dictionary
Car rented
Field name
Field Type
Size
Properties
Car type
Text
15
small car/trucks
Length
Text
15
daily/weekly/monthly
Maintenance cost
Autonumber
15
Amount in dollars,it containes both signs and numeric. e.g $100
Post-rental check
Text
15
charges and information
Car class requested
Text
15
Name of car class
15. It contains several elements.e.g 12/5/1990
Location
Text
15
Continent,state
Email
General
15
It contain several elements.e.g [email protected]
Occupation
Text
15
student /self-employed
Client type
Text
15
company name,individual
Promotions
Field name
Field Type
Size
Properties
Popular season
Text
15
name of the season
Customer Loyalty
Text
15
loyal /not loyal
Large companies
Text