logo


59.1.2 Query Tutorial: Creating One or Many Line Queries


A One-Liner

The simplest form of query is a one-line query.

To add a line to a query, we select the Command Drop Down list and select the Query command.

You edit this line by selecting the Conjunction you want (remember the first one has no effect and can be anything you want), followed by the Table you want, then the field you want and the Query argument. Finally you type in the value you require.

If the field that you want to query on is not visible, you will have to scroll down the list.

Here is an example of a one-line query that may be used to find all [Location] records:

 

Query Tutorial: A One-Liner

A Two-Liner

Often, you will want to qualify the query even more by adding more lines to the query.

To add a second line to the query, we select the Command Drop Down list and select the Query command again.

The Query lines area will automatically fill with whatever was selected last in the area. In other words the last line selected is duplicated.

You edit this line by selecting the Conjunction you want, followed by the Table you want, then the field you want and the Query argument. Finally you type in the value you require.

If the field that you want to query on is not visible, you will have to scroll down the list.

The Query Line area looks like this:

 

Query Tutorial: A Two-Liner

A Three-Liner or more

When you load a previously-saved query, you always have the option to add more lines to the query. We can turn our two-line query into three lines or more by continuing to add more Query command lines.



Harrowex Pty Ltd
http://www.hxmedical.com
Voice:+ 61 4 27 344 279
Fax: +61 3 52 439 019
static@hxmedical.com