Locked lesson.
About this lesson
Use the Query Wizard to build different types of query and perform aggregation.
Exercise files
Download this lesson’s related exercise files.
9.03 using-the-query-wizard - Exercise.docx43.4 KB 9.03 using-the-query-wizard - Exercise solution.docx
77.5 KB TechGurusTicketing24.accdb
908 KB TechGurusTicketing24 - Complete.accdb
928 KB
Quick reference
Creating a Query - Query Wizard
Use the Query Wizard to create a query that contains aggregation.
When to use
Create a query that aggregates values whenever you want to perform basic calculations on table data.
Instructions
Create a Query - Query Wizard
- From the Create tab, in the Queries group, select Query Wizard.
- Select Simple Query Wizard from the list.
- Click Next.
- Select ‘tblTicket’ from the drop-down list.
- Select the ‘TicketNumber’ and ‘CustomerName’ fields and add them to the Selected Fields area using the chevron.
- Select ‘tblTicketCompany’ from the drop-down list.
- Select the ‘Company’ field and add it to the Selected Fields area using the chevron.
- Click Next.
- Select Detail.
- Click Next.
- Name the query ‘qryTicketCompanyQuery’.
- Select Open and view the query.
Create a Query with Aggregation
- From the Create tab, in the Queries group, select Query Wizard.
- Select Simple Query Wizard from the list.
- Click Next.
- Select ‘tblTicket’ from the drop-down list.
- Select the ‘TicketNumber’, ‘CustomerName’, and ‘Charge’ fields and add them to the Selected Fields area using the chevron.
- Click Next.
- Select Summary.
- Click Summary Options.
- Select Avg, Min, Max, and Count records in tblTicket.
- Click OK.
- Click Next.
- Name the query ‘qryTicketChargeSummaryQuery’
- Select Open and view the query.
Lesson notes are only available for subscribers.