PHS CyberSchool
Computer Studies SG
Modified 10 June 2004
Taxi Advertising Database - Maintaining the database
The Advertising Sales manager of the Cape Town City Taxi
Company would like to make some changes to the database created in Taxi Advertising Database - Basic
and worked on in Taxi Advertising Database -
Queries. Another field must be added to the database, and the size of
the First Name field must be increased. Because several different individuals update the
data, the manager would like to add some validation rules to the
database. Finally some additions and deletions are to be made to the database.
Use the Cape Town City Taxi Company database for this task. Perform the following
instructions:
- Open the database and open the Advertiser table in design view.
- Create an index for the Name field. Be sure to allow
duplicates.
- Create an index on the combination of the Province and Postal Code
fields. Name the index Provincepostal. Save the changes.
- Change the field width of the Name field to 30.
- Change the name of the account CS46 to Supa Quick Tyres and Shocks.
- Add the field Ad Type to the Advertiser table.
- Insert the Ad Type field after the Postal Code field. This
field will contain data on the type of advertising
account.
- Define the field as text with a width of 3.
- Advertisers are classified as retail (RET), service (SER) and
dining (DIN). Using a query, change the entries in the Ad Type column to
RET. This will be the type of most accounts.
(Update query)
- Display and save the query.
- Create and save the following validation rules for the Advertiser table.
- Make the Name field a required field.
- Specify the legal values RET, SER and DIN for the Ad Type
field. Include validation text.
- Ensure that any letters entered in the Advertiser Id, Province and
Ad Type fields are
displayed as uppercase.
- Specify that the Balance must be less than or equal R450.00. Include
validation text.
- Save the changes.
- Update the Advertiser form to include the new Ad Type
field. Change the tab order as required.
- Open the Advertiser form or table, and then add the following record to the
table:
| PP24 |
Spur Steakhouse |
Howard Centre |
Pinelands |
WP |
7405 |
DIN |
R50.00 |
R50.00 |
Your age |
- Use Filter by Form to find all the records in the table where the account
has the Ad Type of RET and the Postal Code of 7785. Delete these
records.
- Print the Advertiser table on ONE sheet.
- Join the Sales Rep table and the Advertiser tables using Enforced
Referential Integrity between the Sales Rep table (the one table) and the
Advertiser table (the many table). Print the Relationships windows by
making sure the Relationships window is open, clicking File on the menu bar,
and then clicking Print Relationships.
- Save the database for future tasks.
- Consult the Access Help pages on Update queries, Delete queries,
Validation rules, Referential Integrity, Subdatasheets and Indexes.
(based on Access 2000 by Shelly, G.B., Cashman, T.J. and Pratt, P.J.
published by Course Technology in 2000 www.scsite.com
)
Return to Computer
Studies lesson plan index. This work may be freely copied for non-commercial use only.
Copyright © Pam Miller.