Previous Topic: Specify the Materialized Query ColumnsNext Topic: Specify General Physical Properties for a Materialized Query Table


Specify Search Conditions for Generating the SQL Code for a Materialized Query Table

You can use the Clauses tab in the Materialized Query Tables editor to specify search conditions and criteria that are used when generating the SQL code for a materialized query table.

To specify search conditions used when generating the SQL code for a materialized query table

  1. Click Materialized Query Tables on the Model menu in a physical model based on DB2 LUW.

    The Materialized Query Table editor opens.

  2. Work with the following fields on the Clauses tab:
    Where

    Enter the search condition that must be satisfied by the results of the materialized query table query. You do not have to enter the WHERE keyword. The text you enter becomes the WHERE clause in the SQL code that is generated for the selected materialized query table.

    Group By

    Enter the criteria that you want to use to group rows returned by the materialized query table query. The text you enter becomes the GROUP BY clause in the SQL code that is generated for the selected materialized query table.

    Having

    Specify criteria for the HAVING clause.

    Order By

    Specify criteria for the ORDER BY clause.

  3. Work with options on the other tabs, then click Close.

    Your changes are saved and the dialog closes.

    Note: Click Cancel to close the dialog without saving your changes.