Corel wordperfect office 2002 User Manual

Page of 394
To create a multi-table query based on a data model
Click File New Query.
In the Files of type list box, choose Data models.
Double-click a data model.
Enable the check boxes for each of the fields you want to include in the Answer table.
Click Query Run query.
For more information on including query fields, see “Using Query By Example” on
page 377.
Creating advanced QBE queries
You can use special operators in your queries to perform calculations on fields. For a complete
description of Paradox query operators, see “Query operators” on page 380.
For a complete description of advanced functions, see “Querying databases” in the online Help.
The following image illustrates a query that calculates the value of a parts inventory.
To perform a calculation on a field using a query
Click File New Query.
Choose the drive and folder where the file is stored.
Double-click a table.
Enable the check boxes for each of the fields you want to include in the Answer table.
Press F5.
Type example elements in the fields you want to use in the calculation.
You must press F5 before typing each example element.
Type the formula you want to use in an unused field.
You must press F5 before typing each example element in the formula.
Click Query Run query.
Query operators
You can build complex queries by using query operators. There are seven categories of operators
that you can use to retrieve matching records, display a range of data, perform calculations,
search with a minimum of information using wildcards, change data, and compare sets of
records.
380
Paradox 10