Queries - Calculations on records in a query

The Totals button can be used to many calculations.  It can Sum (which means add), Avg (Average), Min (Minimum), etc. 

q14.jpg (43508 bytes)

q15.jpg (32919 bytes)

 

Note the criteria in the query and its results.  The Totals button has not been selected.  The records are sorted in the order in which they were entered, that is why it is not in ascending alphabetical order.

Criteria After the query has been Run
q12.jpg (17938 bytes) q13.jpg (70974 bytes)

The Totals button was clicked.  Below the Types have been grouped together, in ascending alphabetical order, with their costs.

Criteria After the query has been Run
q18.jpg (19636 bytes) q19.jpg (78549 bytes)

The query looks similar to that above, but there are differences.  Look at the result of the query.  The costs of all the Types of applications were summed or added together.

Criteria After the query has been Run
q16.jpg (19571 bytes) q17.jpg (80022 bytes)

In the query, in the Cost field, the Total was counted.    One can see the number of Types of applications.

Criteria After the query has been Run
q20.jpg (18820 bytes) q21.jpg (64869 bytes)

This work may be freely copied for non-commercial use only. Copyright © Pam Miller