Вы находитесь на странице: 1из 3

Query is simply a question presented in a way that Access can process.

. Access offers many ways to help you narrow down the information youre looking at, including sorting and filtering makes it possible to ask complex question concerning the data in a database and then receive instant answers. Find allows you to work with a specific set of records that meet the criteria you have specified from a table in the database. Filter can temporarily isolate and view a specific set of records to work with while you have form or datasheet displayed. Criteria Expressions comprise operators, identifiers and values that are evaluated to produce a result. Query is a database object used to view, change and analyze data in different ways. can be used to filter data, perform calculations and summarize data. Queries enable you to: Which fields you want to see The order in which the fields should appear Filter criteria for each field The order in which you want each field sorted

Three Main Types of Queries 1.) Select Query - most common type of query. It retrieves records from one or more tables and then displays the results in the order you want. - is represented by the overlapping datasheets, icon in the navigator pane. 3 Types of Select Queries Simple is the most basic query lets you specify which fields to display from a single table Find Duplicates is a query that finds and displays duplicate data in the fields of a table or another query

Find Unmatched finds and displays rows in one table that do not match the data in the rows of another table Ex: You may use this query if you want to check if a student in the student table has not borrowed books in the transactions table

2.) Action Query is used if you want to make charge to any records or more a group of records. The database undergoes a specific task which is specified in the query when it is being performed. It could be creating new tables, deleting rooms from existing ones, updating or creating new records. Four Types of Action Query 1. Append Query obtains the result of a query and adds them to an existing table. It is represented by an exclamation point with a cross icon. T! !

2. Delete Query deletes the records in an underlaying table from the results set by a query. It is represented by an exclamation point with an X X ! ! 3. Make a table Query as the name implies, this query creates new table based on what is specified in a query. It is represented by an exclamation point with a table. !

4. Update Query updates one or more fields in your table. It is represented by an exclamation point with a pencil.

3.) Cross tab Query is used to calculate and restructure data for easier analysis. It calculates the sum, average, count or other types of total for data that is grouped by two types of information. Two Ways to Create a Query 1. Query Wizard 2. Create your own query from scratch

Create Tab Query Wizard Query Design

Working with the Query Window Design Area top portion that displays the fields

Вам также может понравиться