Grader – Instructions Access
2
0
1
9
Project
Exp19_Access_Ch2_Cap – Metropolitan Zoo 1.0
Project Description:
The Metropolitan Zoo tracks its animal data in Excel. The organization decides to use a database to organize the data about the animals, their trainers, and the animal exhibits. In this project, you will open an existing database and create a new table. You will import an Excel file containing information about the animals, and query the database to determine which animals need a checkup. You will also create a query to obtain a listing of the animals in each exhibit.
Steps to Perform:
Step
Instructions
Points Possible
Start Access. Open the downloaded Access file named
Exp19_Access_Ch2_Cap_Zoo.accdb. Grader has automatically added your last name to the beginning of the filename. Save the file to the location where you are storing your files.
Create a new table in Design view. Add the field name
ExhibitID with the
AutoNumber Data Type. Add the caption
Exhibit ID. Set the
ExhibitID field as the primary key for the table. Save the table using the name
Exhibits.
6
3
Add the following fields and set their field properties as shown:
Field Name
Data Type
Field Size Property
Caption
ExhibitName
Short Text
1
5
Exhibit Name
Acres
Number
Integer
(none)
InitialCost
Currency
(no change)
Initial Cost
YearlyCost
Currency
(no change)
Yearly Cost
DateOpened
Date/Time
(no change)
Date Opened
Show
Yes/No
(no change)
(none)
12
4
Switch to Datasheet view and save the table. Add the following records, letting Access assign the Exhibit ID:
Exhibit Name
Acres
Initial Cost
Yearly Cost
Date Opened
Show
Asia
2
2000000
300000
1/
15
/20
11
Yes
Africa
4
3500000
500000
2/3/20
14
Yes
The Americas
3
1500000
250000
5/15/2005
No
Close the table.
Import the downloaded
Zoo.xlsx workbook as a new table in the current database. Using the Import Spreadsheet Wizard, specify that the first row contains column headings, set the
AnimalID field to be indexed with no duplicates, and set the
AnimalID field as the primary key. Import the table with the name
Animals and do not save the import steps.
10
6
View the Animals table in Design view, and change the field size for the AnimalID field to
Long Integer. Change the field sizes for the ExhibitID and TrainerID fields to
Long Integer. Save the table. Click
Yes in the dialog box indicating that some data may be lost. Close the table.
6
7
Begin establishing relationships in the database by adding the
Animals,
Exhibits, and
Trainers tables to the Relationships window. Close the Show Table dialog box. Resize the field lists so that all fields display. Create a one-to-many relationship between the
ExhibitID field in the Exhibits table and the
ExhibitID field in the Animals table, enforcing Referential Integrity. Select the option to cascade update the related fields.
8
8
Create a one-to-many relationship between the
TrainerID field in the Trainers table and the
TrainerID field in the Animals table, enforcing Referential Integrity. Select the option to cascade update the related fields. Save and close the Relationships window.
8
9
Create a query using the
Simple Query Wizard. From the Animals table, add the
AnimalID,
AnimalType, and
DateOfLastCheckup fields (in that order). Ensure the query is a Detail query. Name the query
Checkup List and finish the wizard.
10
10
View the query in Design view, and then set the criteria for the DateOfLastCheckup field so that only animals whose last checkup was before
1/1/2022 are displayed.
5
Sort the query in ascending order by the DateOfLastCheckup field. Save the query. Run the query, and then close the query.
5
12
Create a new query in Design view. Add the
Animals,
Exhibits, and
Trainers tables to the query design window. Add the following fields to the query (in this order):
AnimalType
Origin
ExhibitName
FirstName
LastName
Position
9
13
Set
The Americas as the criteria for the ExhibitName field and sort the query in ascending order by Origin. Run the query, and save the query as
Americas Exhibit. Close the query.
6
Copy the
Americas Exhibit query in the Navigation Pane and paste it with the name
Asian Exhibit. Modify the query in Design view to replace
The Americas with
Asia. Run the query, save the query, and close the query.
6
Close all database objects. Close the database and then exit Access. Submit the database as directed.
0
Total Points |
100 |
Created On: 07/12/2019 1 Exp19_Access_Ch2_Cap – Metropolitan Zoo 1.0
ID | mSysRowId | |||
---|---|---|---|---|
1 | GmZEmG7La | 2 | 5 |
Trainer | FirstName | LastName | Address | City | State | Zipcode | HomePhone | BusinessPhone | DateHired | Education | Position | |||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Gerry | Carney | 1289 Dickinson Drive | Coconut Grove | FL | 3 | 3055556890 | 3055559098 | 2009-0 | 4 | DVM | Director | |||||
Jackie | Malka | 1000 Leafy Way | Coral Gables | 33146 | 3055558909 | 3055559099 | 2010-08-22 | MS | Senior Trainer | |||||||
Elizabeth | Lieb | 4 Main Highway | Miami | 33157 | 3055558778 | 3055559000 | 2010-07-01 | BS | ||||||||
Bill | Horn | 509 Gerona Avenue | 3055557876 | 3055559095 | 2011-05-31 | |||||||||||
Keith | Masterson | 120 Seacrest Ave. | 3055551897 | 3055559770 | 2019-06-18 | BA |
SELECT Exhibits.ExhibitID, Exhibits.ExhibitName
FROM Exhibits;
SELECT Trainers.TrainerID, Trainers.LastName
FROM Trainers;
>Animals
1 000
NO / /22
3 00
3 /21
2 NO 4 Africa /22
2 , China
YES 1 NO /22
1 5 , birds
NO 50 NO /21
2 India /1/21
4 Africa 4 NO 5 Plants NO 3 Africa 2 YES 200 YES 1 n Crocodile
300 Cuba 3
2
AnimalID
AnimalType
Weight
Diet
Origin
Endangered
ExhibitID
DateOfLastCheckup
TrainerID
1
Emerald Tree Boa
Mice, birds
South America
NO
3
2/1/22
2
Elephant
10
Plant parts, grass
Africa
2
6
9
3
Galapagos Tortoise
4
Vegetation
Galapagos Islands
YES
10/
8
5
4
Iguana
Rodents, birds, insects
Central America
3 9/1/21
5
Gerenuk
80
Leaves, fruits, flowers
NO
2 2/
11
6
Muntjac
50
Leaves, grass, fruit
India
1 6/9/21
7
Sea Otter
Mollusks, Sea Urchins
North Pacific Ocean
1 8/
14
8
Water Monitor
Small animals
Southern Asia
1
2/1/22
3
9
Clouded Leopard
Small animals Southeast Asia
1 9/
17
10
Bengal Tiger
450
Animals, fish, fowl
YES
1
12
11
Black Rhinoceros
2500
Plants
YES
2 10/17/22
12
Gorilla
300
Leaves, plant parts, fruit
Central Africa
2 5/4/21
13
Zebra
600
South Africa
2 7/28/22
14
Ostrich
200
Alfalfa
NO
2 10/25/21
15
Giraffe
4000
Leaves, stems
West Africa
2
2/1/22
4
16
Komodo Dragon
Deer, Boar
Indonesia
1 5/9/21
17
Cuba
Fish, small animals
YES
3 5/12/22