Access 2016 Intermediate

Access 2016

Lesson 4 – Designing Advanced Queries

Steps

Practice Data

4. Select the arrow

Click

The aggregate function list appears.

5. Select the desired function.

Click Sum

Access displays the desired aggregate function result.

Click the Totals button again. Notice that the Totals Row is removed from the query.

C REATING A F UNCTION Q UERY

Discussion

Access allows you to create a query that groups records by a selected field and then applies a function that calculates a value within the grouped fields. For example, you could group records by state and then select the Count function to find out how many customers (records) are in each state (field), or you could group records by customer name and then calculate the Sum of each customer’s orders.

Access allows you to perform more than one calculation on a field. For example, you can group records by weekly sales and then find both the minimum and maximum values.

There are several types of functions from which you can choose. The most commonly used functions are listed in the following table:

Function

Description

Sum

Totals the values in the calculated field

Average

Averages the values in the calculated field

Count

Counts the number of records in the calculated field

Maximum

Finds the highest value in the calculated field

Minimum

Finds the lowest value in the calculated field

OFFICEPRO, Inc.

Page 77

Made with FlippingBook - professional solution for displaying marketing and sales documents online