Presentation is loading. Please wait.

Presentation is loading. Please wait.

MS Access: Using Advanced Query Features

Similar presentations


Presentation on theme: "MS Access: Using Advanced Query Features"— Presentation transcript:

1 MS Access: Using Advanced Query Features
Instructor: Vicki Weidler Assistant: Joaquin Obieta

2 Overview Understand the differences between outer, inner, and self-join queries Design outer, inner, and self-join queries Generate calculated fields in a query Modify the format of a displayed value Use the expression builder Create queries to add, delete, and modify data in a table and to produce new tables

3 Joins Queries that include data from more than one table are called joins. A join tells MS Access how the data between tables is related. You can create: Outer joins Inner joins Self-joins

4 Outer Joins An outer join is a query in which all of the records from one table are joined to only matching records from another table.

5 Inner Joins If one table does not have a matching record in the second table, then no records from either table will appear in the query results. To avoid this, you can use an intermediate table to extract data from the original two tables. This intermediate, or join table, acts as a bridge between two tables that don’t have any related fields. This is used when a many-to-many relationship exists between two tables and uses primary keys from both tables to extract the data from the intermediate join table.

6 Self-Joins A self-join is a query that displays matching records from the same table when there are matching values in two fields.

7 The Expression Builder
The Expression Builder is used to create expressions for either a calculated field or a criterion for a field. It creates expressions by using fields in tables and queries, built-in functions, and calculation operators. The Builder has three sections: 1)    Upper section contains the Expression box which is where you build the expression 2)    Middle section contains buttons for commonly used operators 3)    Lower section has three boxes. The far left box contains folders listing the tables, queries, forms and reports in the database as well as folders containing functions, operators, and expressions. The middle box lists the elements contained in the folder selected on the left. The right box displays any values for the items selected in the left and middle boxes.

8 Action Queries Action queries perform certain actions in tables. There are four types: Append-append data from one table to another Delete-delete records from tables based on specific criterion Update-update data in different tables at the same time Make-Table-creates a table from the result of a query

9 Summary Understand the differences between outer, inner, and self-join queries Design outer, inner, and self-join queries Generate calculated fields in a query Modify the format of a displayed value Use the expression builder Create queries to add, delete, and modify data in a table and to produce new tables

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: Using Advanced Query Features"

Similar presentations


Ads by Google