Specify the Source Tables for a Materialized Query Table

You can use the From tab in the Materialized Query Tables editor to specify the source tables for a materialized query table. The source tables are those referenced by the materialized query table. You can also specify the order of the tables. For each source table, you can specify an alias name.

To specify the source tables 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. Click the From tab.

    The names of all the tables in the current model appear in the Available Tables and Views: grid. Use the arrow button or double-click a table in this list to move it to the From list and include its columns in the selected materialized query table.

    The names of all the source tables for the selected materialized query table appear in the From grid. Use the arrow button or double-click a table in this list to remove the columns from the selected materialized query table and move the table name to the Available Tables list. Use the up and down arrow buttons to move the selected source table up or down one position in the From list.

  3. You can enter an alternative name for the selected source table in the Alias field. An alias is typically a new name that is more appropriate in the context of the materialized query table. The Alias is only available when you select a table in the From: list.
  4. 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.