Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 Access Lesson 3 Creating Queries. 2 Creating a Query with the Simple Query Wizard Query-- database object that lets you ask the database about the data.

Similar presentations


Presentation on theme: "1 Access Lesson 3 Creating Queries. 2 Creating a Query with the Simple Query Wizard Query-- database object that lets you ask the database about the data."— Presentation transcript:

1 1 Access Lesson 3 Creating Queries

2 2 Creating a Query with the Simple Query Wizard Query-- database object that lets you ask the database about the data it contains. The result of a query is a datasheet that includes the records you asked to see. condition (also called a criterion)--way of telling the query which data you want to see When the condition has two or more parts, such as customers who have ordered a specific part and live in a certain zip code, the two conditions are called criteria.

3 3 Creating a Query with the Simple Query Wizard (continued) A query is based on a table(s). Simple Query Wizard--asks you what data you want to see by letting you select options in dialog boxes detail query-- shows every field in each record summary query--summarizes relevant data; such as adding the field values in a column that stores price data

4 4

5 5 Sorting Data When you view field values in ascending or descending order from A to Z or from smallest to largest, you apply a sort to the field. Home>Sort & Filter

6 6 Filtering Data Filter-- temporarily displays records in a datasheet based on a condition Filter By Selection--select a field value>click Home>Sort &Filter>Selection button Filter By Form--display records that contain one or more values AutoFilter-- menu that opens when you click the arrow on the right side of a field selector

7 7 Creating a Query in Design View table datasheet--using a sort or a filter is only way to change what data is displayed query datasheet—more options if you create a query in Design view You can select a sort order for a field by setting the sort order in the field’s Sort box in the design grid.

8 8 Creating a Query in Design View Adding a Condition to a Field: If the question is “Which orders contain an order for Product ID 1701?” then you need to add a condition to the query design before you run it. To add a condition to a field, click in the field’s Criteria box, and then type the condition.

9 Running a Query: Query Tools>Design tab>Results group>Run button 9

10 10 Using Operators in a Condition If a query selects records for products that are out of stock, this is called an exact match condition because the records must contain the value 0 in the Units In Stock field to be displayed in the query datasheet. The And operator selects records that match all of two or more conditions in a query The Or operator selects records that match at least one of two or more conditions in a query.

11 11


Download ppt "1 Access Lesson 3 Creating Queries. 2 Creating a Query with the Simple Query Wizard Query-- database object that lets you ask the database about the data."

Similar presentations


Ads by Google