4-2 CHAPTER 4 • CREATING AND USING QUERIES
➢ Action queries allow you to change information in one or more tables.
• Queries actively search a specified table, or tables (by joining them), and return answers to
questions in a dynaset.
Views
• There are five query views: Design, Datasheet, PivotTable, PivotChart, and SQL.
• Design view describes the query including columns retrieved, sort order, and filtering
criteria.
• Datasheet view displays the dynaset, or retrieved results.
• PivotTable view displays aggregate information based on two or more variables.
Creating a Basic Select Query
• This section discusses how to use the Access commands to create a query. Review these
bulleted steps with students to make sure they understand the fundamental process.
• Figure 4.2 shows the Coffee Merchant schema.
Retrieving Selected Rows from a Table
Exercise 4.1: Creating a One-Table Query. This exercise shows the students how to create and
run a one-table query using tblInventory. The criterion selects inventory rows in which the
Comments contains the string “hard bean,” and the Beverage is coffee, and the Flavored entry is
“no.” Students learn to use a wildcard criterion for the first time.
Working with a Dynaset
• Query results are returned in a Dynaset.
➢ Rearrange a dyanset’s rows and columns as necessary.
➢ Alter the appearance of dynaset columns by formatting them in limited ways.
Producing Sorted Query Results
• Specifying sort information in a query orders a dynaset’s rows. Any field may be sorted, and
Altering the Order and Size of Columns
• Rearrange dynaset columns in the query definition or in Datasheet view—after a query is