Anda di halaman 1dari 14

QUERY

QUERY
The query is an object in access database by which the required information/data may be pointed out and separated .

How to create a query?


A query may be created by Considering the following two ways; 1. By query wizard 2. By query design

How to create a QUERY

By query wizard
A query may be created in this option by clicking on query wizard. When click on it a window will be opened to follow the step by step procedure

1. SIMPLE QUERY WIZARD


By clicking on this option a new simple query wizard window will open to follow certain default steps . i. A wizard will ask about to choose a table as source of data. ii. It ask about the title of query. iii. Finally, it asks about to finish.

2. Cross Query Wizard


It is a query to search data among the different tables which a data base is consist on, it follow a step by step procedure.

3. Find Duplicate Query Wizard


It is a query to search data among the different tables and query as well which a data base is consist on, it follow a step by step procedure.

Find Duplicate Query Wizard


i. A wizard will ask about to choose a table and query in database as source of data. ii. It ask about the title of query. iii. Finally, it asks about to finish.

To create a query that uses two or more tables


1. Open the tables and/or queries you want to use in Query Design view. 2. Choose the field names you want to retrieve in the order you want to retrieve them. 3. Choose the field names you want to sort by in the order you want to sort. Under the fields you want to sort by, choose Ascending or Descending. 4. Enter your selection criteria, if necessary (Not applicable in this example). 5. Deselect the Show button for columns you do not want to display. 6. Click the Run button. Access retrieves the columns you chose and displays the rows in the order you specified.

Save a Query
1. Click the Save button on the Quick Access toolbar. Access saves the query unless you are saving for the first time. If you are saving for the first time, the Save As dialog box appears. 2. Type the name you want to give your query. 3. Click OK. 4. Access saves the query. You can now access the query by using the Navigation pane.

Query Wizard
The Access 2007 query wizard allows you to create queries without using Structured Query Language (SQL), the language normally used to retrieve data from a database. You may specify fields from more than one data source and the query wizard also is able to calculate averages, counts, maximums, minimums and sums.

The following steps will show how to use the Access 2007 query wizard.
1. Create a query using one of the query wizards displayed in the "New Query" dialog box. For example, for most queries we would select the "Simple Query Wizard" and click on the "OK" button. 2. Follow the prompts given in the "Query Wizard" dialog boxes. The last dialog box will provide the option of running the query or viewing the query structure in "Design" view. 3. Use "Design" view to fine-tune the query or use the query wizard to rewrite the query from scratch. This is frequently done with complex queries or large databases where the query structure used by the query wizard does not provide optimum performance.

THANK YOU Q`s you have, be welcome ???

Anda mungkin juga menyukai