Presentation is loading. Please wait.

Presentation is loading. Please wait.

MS Access: Querying Tables

Similar presentations


Presentation on theme: "MS Access: Querying Tables"— Presentation transcript:

1 MS Access: Querying Tables
Instructor: Vicki Weidler Assistant: Joaquin Obieta

2 Overview Learn how to create, run, print, and save queries
Use queries to sort data and filter query results Learn how to modify query results Understand how to modify queries by adding/ removing fields and by using comparison operators Learn how to use AND and OR conditions Learn how to find records with empty fields Perform calculations in queries by using expressions and aggregate functions

3 Comparison Operators > Greater than < Less than = Equal to
<= Less than or equal to >= Greater than or equal to <> Not equal to Use to specify criteria to find records with matching values in 1> fields Use to specify a condition for a query

4 OR Conditions Used to specify two conditions in the criteria Example:
Unit_price is greater than 2 OR Qty_Available is equal to 700

5 AND Conditions Used to show only the records that satisfy all the specified conditions Example: Unit_price is greater than 1.4 AND less than 1.9

6 Wildcard Operators Used to locate text values when you can’t remember the exact text or word; placeholder ? Used to substitute for a single character * Used to substitute for any number of characters Other Wildcard Operators [] Any character within the brackets b[aeo]ll finds “ball,” “bell,” and “boll” but not “bill” or “bull” ! Any character not in the brackets b[!ae]ll finds “bill,” “boll,” and “bull” but not “ball” or “bell” - (hyphen) Any character in the specified range B[a-d]t finds “bat,” “bbt,” “bct,” and “bdt” of characters. The range must be in ascending order # Any single numeric character 10# finds “100,” “101,” “102,” and so on but not “10A”

7 Empty Fields Unknown (empty) values in fields are referred to as null values Null values cannot be used in primary key fields or in calculations Can display or remove null values to avoid/prevent problems

8 Calculations in Queries
When calculations are built into queries (and not stored in the source tables) it ensures the most up-to-date information Calculations are performed each time the query is run Perform calculations on single records or on a group of records Examples: Totals, Averages, Counts

9 Summary Learn how to create, run, print, and save queries
Use queries to sort data and filter query results Learn how to modify query results Understand how to modify queries by adding/ removing fields and by using comparison operators Learn how to use AND and OR conditions Learn how to find records with empty fields Perform calculations in queries by using expressions and aggregate functions

10 Conclusion Resources Questions & Answers Evaluations Thank You!!!
Unfortunately no consultants on campus to come to your office and help you design your database


Download ppt "MS Access: Querying Tables"

Similar presentations


Ads by Google