Although a MQT can contain almost any query, the optimizer only supports a limited set of query functions when matching MQTs to user specified queries. The user specified query and the MQT query must both be supported by the SQE optimizer.
The supported function in the MQT query by the MQT matching algorithm includes:
There is limited support in the MQT matching algorithm for the following:
It is recommended that the MQT only contain references to columns, and column functions. In many environments, queries that contain constants will have the constants converted to parameter markers. This allows a much higher degree of ODP reuse. The MQT matching algorithm attempts to match constants in the MQT with parameter marks or host variable values in the query. However, in some complex cases this support is limited and may result in the MQT not matching the query.