This document discusses creating queries in MS Access. It explains that queries are used to find and display specific data from one or more tables based on criteria. It provides examples of different types of queries, including select, action, crosstab, delete, append, and make table queries. The document then outlines the steps to generate a simple query using the query wizard, which allows selecting fields from multiple tables to output a resultant table with the desired information.
2. INDEX
Queries are used……………………………………. 3
Queries categories……………...…….... 4
Action Queries………………………………………. 5
CREATE TAB…………………………………………….. 6
STEPS INVOLVE IN HAVING A QUERY ………. 7
SIMPLE QUERY………………………………………… 8
GENERATE QUERY……………………………………. 9
RESULTANT ………………………………………………. 10
OVERVIEW OF TABLE,APPEND,CROSSTAB&DELETE… 11
MAKE A TABLE…………………………………………….. 12
APPEND……………………………………………………… 13
CROSSTAB……………………………………………………… 14
DELETE………………………………………………………….. 15
THANKS…………………………………………………….. 16
QUERY WIZARD
2
3. QUERIES ARE USED TO FIND YOUR DATA
AND/OR DISPLAY SPECIFIC INFORMATION
Look at some queries in the sample database. Look at the design for each and
notice very basic to very complex designs.
Create query with use of query wizard (only allows you to select specific fields
from more
than one table)
Create a query from design view (recommended) using Customers table, add
fields, sort, criteria
Identify your fields to look from
Sort fields
Identify criteria
Identify fields to show
Group if necessary
Run the query
Modify a query (move columns, insert columns, delete, widen, etc.)
Quick print from a query - File – Print
QUERY WIZARD
3
4. QUERIES
Two main categories of queries
Select - Select Data
Retrieves data based on specified criteria and then displays it.
Select Relational queries – Queries that draw from two tables &
then display the data.
Action – Alter Data
Crosstab, Delete, Update, Append, Make Table
QUERY WIZARD
4
5. ACTION QUERIES
Crosstab – Summarized values are displayed based
on two fields.
Delete – specified records are deleted from your
table(s)
Update – specified records are updated in your
table(s)
Append - records from 1 table are added to another
Make Table – a new table is created based on
specified criteria
Using Make Table, Delete and Append queries you
can archive records
QUERY WIZARD
5
6. MS-ACCESS:CREATE TAB(QUERY)
At times the data stored in a single table is so large volume
that it becomes difficult for a user to find specific information.
It becomes more complex when two or more tables get
involved in searching specific information.
In such situation, it is a good idea to use the concept of
queries.
Query is an operation that extracts record(s) from a database
based on a given condition.
A query consists of search criteria expressed in a database
language called SQL.
QUERY WIZARD
6
7. STEPS INVOLVE IN HAVING A QUERY
:AS FOLLOWS
QUERY WIZARD
7
1)
1(A)
1(B)
16. ABOVE QUERY CAN BE MANIPULATED AS WE WANT
THIS SHOW AS QUERY CAN BE IN ANY FORM ACCESS MAKE
IT EASSY AND SIMPLE
QUERY WIZARD
16
THANKS TO MY PARENTS AND ALL RESPECTED
SIR/MADAM FOR GIVING ME THIS
OPPORTUNITY..