SQL query texts

You can use SQL query texts if you want to be able to use list boxes when compiling reports. To specify a SQL query text for a report, click the Selections button, click the Parameters button, open the Lookup SQL tab, and then enter the text in the Query field.

Example

When compiling the report R1001 Work order, you are prompted to specify the production orders for which the work orders are to be printed: 'Production order between ...'. To specify this range, retrieve the underlying production files, and then select the 'From' and 'To' values. This list of underlying production files is compiled using an SQL query text.

Fields

Query

Description

Program

System data

SQL statements - original

SQL statements - translated