
The Query command is a powerful tool that allows you to search a
data base and select those records which meet certain criteria.
The Print, Send to Spreadsheet and Mail Merge functions will
always print the subset of records selected by the Query command,
in the order set by the Order command.  Hence the Query and Order
commands directly affect the appearance of most printed output.

You will see a list of available query definitions on the screen.
Below this, a command list allows you to select definitions for
invocation, edit definition descriptions, and perform other tasks
with the definitions.  The list has three columns: the Short Name
is the name by which definitions are referred, the Description
contains a more detailed account of the definition's function,
and the File is the name of the data file for which the query was
created.
..noform
COMMANDS FOR USERS WITH READ-ONLY PRIVILEGES

    SELECT    - This command allows you to invoke a predefined
                query definition.

    VIEW      - This command displays the details of the
                highlighted query definition, without invoking it.

    NOW       - This command allows you to define and invoke a
                query definition without saving it in the query
                definition list.

    THIS_VIEW - Toggles between definitions for this view only
                and all definitions

    QUIT      - Select this command to indicate that you have
                finished using the Query data view.

ADDITIONAL COMMANDS FOR USERS WITH AUTHOR PRIVILEGES

    CREATE    - This command allows you to define a new query
                and add the definition to the list.

    EDIT NAME - This command allows you to change the short name
                or description of the highlighted query definition.

    DELETE    - This command removes the highlighted query
                definition from the list, and deletes it from
                disk.

    For complete details on defining query definitions, refer to
    the Database Manual, or press the F1 key while editing the
    Query Definition.

..regform
TECHNICAL NOTE

The index file created by the Query command will be stored either
in the user's Personal Directory ($$persdir) or in the Query
Directory ($$quepath).   There is a boolean variable, ##pidx,
which is set according to the SMART.CFG configuration defaults
file.  If ##pidx is set to True, the indices created by the Query
command (and the Special Sort option accessible with the Order
command-list option) will be stored in the user's Personal
Directory.  If ##pidx is set to False, the index is put in the
Query- or Sort Directory, which is usually shared between many
users.  If this is the case, be wary that conflicts could arise
if two or more users invoke the same query or sort definition at
the same time.


