User-supplied estimates

The Sybase IQ query optimizer uses educated guesses to help decide the best strategy for executing a query. For each table in a potential execution plan, the optimizer must estimate the number of rows that will be part of the results. If you know that a condition has a success rate that differs from the optimizer rule, you can tell the database this information by using an estimate in the search condition.

The estimate is a percentage, which can be a positive integer or can contain fractional values.

Examples

Fractional values enable more accurate user estimates for joins, particularly for large tables.

Compatibility

Adaptive Server Enterprise does not support explicit estimates.