How to: |
You can create a subquery using a HOLD file. A subquery is a nested query that is added to the Where clause of an SQL statement. A subquery is valuable because it is highly reusable.
Note: When creating a chart or report in InfoAssist, on the Home tab, in the Design group, you can click Query to create your content in Query mode. This hides the canvas and uses only the Query and Filter panes for content creation. In Query mode, if a subquery is present and there is no ACROSS field in the request, the data is refreshed only at run time. It is not refreshed at design time as you edit your content, improving performance. Since the canvas is hidden at design time, data does not need to be refreshed at that point.
This procedure describes how to create a subquery filter using a HOLD file created in the previous procedure.
The Filter dialog box opens.
The report is filtered by the subquery that you created.
Note: To view the SQL statements generated by the request, go to the Quick Access Toolbar, open the Run drop-down menu, and select SQL Trace.