Query
Query
Designing a
Multi-table Query
2 Contents
Introduction
Planning Our Query
Step 1: Pinpointing the question we want to ask
Step 2: Identifying the information we need
Step 3: Locating the tables containing the
information we need
Step 4: Determining the criteria our query should
search for
Query Criteria Reference Guide
Joining Tables in Queries
Creating a Multi-table Query
To create a multi-table query
Practice
3 Introduction
Queries can be difficult to understand and build if
you don't have a good idea of what you're trying to
find and how to find it. A one-table query can be
simple enough to make up as you go along, but to
build anything more powerful you'll need to plan the
query in advance.
4 Planning a query
When planning a query that uses more than one table, you
should go through these four steps:
1. Pinpoint exactly what you want to know. If you could ask your database any
question, what would it be? Building a query is more complicated than just
asking a question, but knowing precisely what question you want to answer
is essential to building a useful query.
2. Identify every type of information you want included in your query results.
Which fields contain this information?
3. Locate the fields you want to include in your query. Which tables are they
contained in?
4. Determine the criteria the information in each field needs to meet. Think
about the question you asked in the first step. Which fields do you need to
search for specific information? What information are you looking for? How
will you search for it?
8. After you have set your criteria, run the query by clicking the Run
command on the Design tab.
33 Creating a multi-table query
9. The query results will be displayed in the query's Datasheet
view, which looks like a table. If you want, save your query by
clicking the Save command in the Quick Access Toolbar. When
prompted to name it, type the desired name, then click OK.