Microsoft Access Data
willietanks
Access Assignment
Please create a new database called Automobiles for North East Honda dealership. The database will
have two tables called Cars and Locations.
Table: Cars
Field Name Length Description
Vehicle ID 5 a unique identifier of a vehicle in the dealership
Model 10 model name of the vehicle (should appear in upper case)
Year 4 year of make of the vehicle
Location Code 2 Location where the vehicle is available
Cost Acquisition Cost of the vehicle
Selling Price Retail Selling price of the vehicle
You have to choose the Primary Key and the type of each field (i.e. text, currency, etc)
Data for the table “Cars”
NEH10 accordlx 2006 S1 18500.00 20200.00
NEH21 accordex 2006 WB 21100.00 25100.00
NEH20 accordex2005 PO 21100.00 24999.00
NEH30 civicdx 2004S1 10800.00 13500.00
NEH40 Pilot 2007 S1 26500.00 29999.00
NEH31 civicdx2002 WB 10800.00 13550.00
NEH32 civicdx2003 PO 11200.00 14100.00
NEH50 odessyex2006 S1 23500.0026500.00
Table: Locations
Location Code 3 same as in “cars” table - it is an unique identifier
City 15 Name of the city for the location code (upper case)
Phone 10 Phone number for the location - (xxx)xxx-xxxx
Manager 25 First and last name of the manager for the location
(uppercase)
Designate a primary key and type of the field.
Video instruction: Create a Database & Table - Basics
Both tables should be related by location code:
Video instruction: Creating relationships between tables
All fields in both the tables are required
Video instruction: Table fields –required, adding, deleting
Data for “Locations” table
S1 Scranton 5709416136 Yipeng Liu
WB WilkeBarre 5701112222 your first and last name
PO Poconos 5702221111 Ronald Johnson
Now watch the following video clip before working on the queries:
Video instruction: Selecting Tables for Queries
Create the following queries
1. A query to identify the availability of a specific model (typed by the user). The query should
display the Model, Year, City and Selling Price when a user types in the Model name. The user
should be prompted to type the model name. Save the query as CARSQ1
Video instruction: Parameter Basics
2. A query to show the profit on each car. Profit = Selling Price-Cost. The query should display
Vehicle ID, Model, Year, and Profit. Name the Query - CARSQ2.
Video instruction: Calculated Fields
3. A query to show the total value of inventory of cars based on cost. - i.e., the query should show
the total “cost” for all the vehicles. Name the query - CARSQ3
Hint: Read chapter extension 9, Q4 (p. 443-444) on your text book.
4. A query to show the total “profit” if all the cars are sold at the indicated “selling price”. This query
is based on the query “CARSQ2” (Question 2). – i.e., The query should show “Total Expected
Profit”. Name the query - CARSQ4
Hint: Same operations as query 3, except you need to select the “profit” field in query CARSQ2
instead of table “Cars” at the very beginning when you create this query.