0% found this document useful (0 votes)
260 views

Access Tutorial 2

This document provides instructions for analyzing donor and pledge data from the Redwood Zoo database. It involves: 1) Defining relationships between tables 2) Creating queries to find pledges over $200, update a pledge amount, and find donors by pledge amount and fund 3) Adding calculated fields to a query for overhead and net pledge amounts 4) Creating queries to summarize pledge statistics in total, average, and count by fund

Uploaded by

rizcst9759
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
260 views

Access Tutorial 2

This document provides instructions for analyzing donor and pledge data from the Redwood Zoo database. It involves: 1) Defining relationships between tables 2) Creating queries to find pledges over $200, update a pledge amount, and find donors by pledge amount and fund 3) Adding calculated fields to a query for overhead and net pledge amounts 4) Creating queries to summarize pledge statistics in total, average, and count by fund

Uploaded by

rizcst9759
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

Tutorial 2

Case Problem: Redwood Zoo


Data File needed for this Case Problem: Redwood.mdb (cont. from Tutorial 1)
Redwood Zoo Michael Rosenfeld wants to find specific information about the donors and their
pledge amounts for the Redwood Zoo. Youll help him find the information in the Redwood
database by completing the following:
1. Open the Redwood .
2. Define the necessary one-to-many relationships between the database tables, as follows:
between the primary Donor table and the related Pledge table, and between the primary
Fund table and the related Pledge table. (Hint: Add all three tables to the Relationships
window, and then define the two relationships.) Resize the field lists, as necessary, to display
all the field names. Select the referential integrity option and the cascade updates option for
each relationship.
3. Use Design view to create a select query that, for all pledges with a TotalPledged field value
of greater than 200, displays the DonorID (from the Donor table), FirstName, LastName,
PledgeID, TotalPledged, and FundName fields. Sort the query in ascending order by
TotalPledged. Save the query as qryLargePledges, and then run the query.
4. Use the qryLargePledges datasheet to update the Pledge table by changing the
TotalPledged field value for PledgeID 2976 to 750. Close the query.
5. Use Design view to create a select query that, for all donors who pledged less than $150 OR
who donated to the Whale Watchers fund, displays the PledgeID, PledgeDate,
TotalPledged, FirstName, and LastName fields.
a. Save the query as qryPledgedOrWhaleWatchers, run the query, and then switch to
design view.
b. Do a File | Save as and save the query as qryPledgedAndWhaleWatchers. Change
the query to select all donors who pledged less than $150 and who donated to
the Whale Watchers fund.
c. Save the revised query, and then run the query. Close the query.
6. Use Design view to create a select query that displays the DonorID (from the Donor table),
TotalPledged, PaymentMethod, PledgeDate, and FundName fields.
a. Save the query as qry PledgesAfterCosts.
b. Create a calculated field named Overhead that displays the results of multiplying
the TotalPledged field values by 15% (to account for overhead costs).

c. Save the query, and then create a second calculated field named NetPledge that
displays the results of subtracting the Overhead field values from the
TotalPledged field values.
d. Format the calculated fields as Fixed and set an appropriate caption for the
NetPledge field.
e. Sort the results in ascending order by TotalPledged.
f.

Save the modified query, and then run the query. Resize all datasheet columns to their
best fit, and then save and close the query.

7. Use the Pledge table to display the sum, average, and count of the TotalPledged field for
all pledges. Then do the following:
a. Specify column names of Total Pledge, Average Pledge, and Number of Pledges.
b. Change properties so that the values in the Total Pledge and Average Pledge columns
display two decimal places and the Fixed format.
c. Save the query as qryPledgeStatistics, run the query, resize all datasheet columns to
their best fit. Save the query.
d. Change the query to display the sum, average, and count of the TotalPledged
field for all pledges by FundName. (Hint: Use the Show Table button on the Query
Design toolbar to add the Fund table to the query.)
e. Do a File | Save As menu option to save the query as qryPledgeStatisticsByFund,
f.

Run the query, print the query datasheet, and then close the query.

8. Close the Redwood database

You might also like