By adding an INTO TEMP clause to your SELECT statement,
you can temporarily save the results of a multiple-table query in
a separate table that you can query or manipulate without modifying
the database. Temporary tables are dropped when you end your SQL session
or when your program or report terminates.
The following query
creates a temporary table called stockman and stores the results
of the query in it. Because all columns in a temporary table must
have names, the alias adj_price is required.
You can query this table and join it with other tables,
which avoids a multiple sort and lets you move more quickly through
the database. For more information on temporary tables, see the HCL OneDB™ Guide to SQL:
Syntax and the HCL OneDB
Administrator's Guide.