Corel wordperfect office 2002 ユーザーズマニュアル

ページ / 394
Working with queries
Paradox lets you use queries to retrieve data from your tables. You control how much
information you want to retrieve by specifying fields and records that meet conditions you
define. For example, you could design a simple query that finds all of the customers that made
purchases of more than 1000 dollars in the past three months.
The data retrieved by the query is presented in a temporary table. The data displayed in this
table is a copy of the data from the original table. You can specify the order in which records are
displayed. By default, this table is stored in the Private working directory, which is located in the
Paradox folder on your hard drive. It is automatically overwritten the next time you run a query
unless you rename the table and save it to another directory.
You can also use queries with your data to perform basic calculations, and to change, insert, or
delete certain values in records. You can run a query on an individual table or on several linked
tables.
Paradox offers three methods for creating a query.
Ÿ
Query By Example (BE)
¾
lets you create a query based on one or more tables by providing
an example of the information you want to retrieve
Ÿ
The Query Expert
¾
guides you through the process of creating basic queries
Ÿ
The Visual Query Builder (VQB)
¾
lets you use a graphical interface to select tables, fields,
and any other option you need to build a query in Structured Query Language (SQL). For
more information on the VQB and Structured Query Language, see “Creating SQL queries” in
the online Help.
Using Query By Example
When using the Query By Example method, you can create a single table query. Queries are used
to retrieve only specific values from your table. You can also use the Query Expert to create a
query.
In the query window, a check box under each field name is used to include it in the Answer
table. You determine how you want the field displayed by choosing one of five options.
Button
Action
Blank
Do not include this field
Check
Display only unique values for this field
Working with queries
377