You can use the Insert Query Element tool to add field names, table names, and SQL
commands to queries.
-
On an SQL report query page, select the query box location where you want to
insert a name or command.
-
Select .
Or use CTRL+I.
-
To insert a field name:
-
Select the Fields tab.
-
In the Table dropdown list, select the table
with the fields to add to the query.
- Optional:
Select Sort to organize the fields in
alphabetical order.
-
Select the gray box to the left of the field name to select it.
Use Ctrl-Click to select multiple fields.
-
Select Insert.
The field names are inserted at the cursor location in the query
box.
-
To insert a table name:
-
Select the Tables tab.
- Optional:
To include .HST tables in the list, select Audit
Objects.
- Optional:
Select
to open the Find dialog and search for the
table to insert.
-
Select the gray box to the left of the table name.
Use Ctrl-Click to select multiple tables.
-
Select Insert.
The table name is inserted at the cursor location in the query
box.
-
To insert an SQL command:
-
Select the SQL tab.
-
Select the SQL command to insert.
-
Select Insert.
The SQL command is inserted at the cursor location in the query
box.