Setting default statistics for created temporary tables
If you can estimate the normal cardinality and number of pages that a particular created temporary table uses, you can set the default values that Db2 uses for that table.
About this task
When Db2 prepares an SQL statement that refers to a created temporary table, the statistics that it uses depend on whether the table was already instantiated. If the table was already instantiated, Db2 uses the cardinality and number of pages that are maintained for that table in storage. If the table was never yet instantiated, Db2 uses the CARDF and NPAGES column values of the SYSTABLES row for the created temporary table. These columns normally contain default (-1) values because Db2 utilities cannot collect statistics for created temporary tables.
Procedure
To set statistics for created temporary tables: