ASA SQL Reference
SQL Functions
Alphabetical list of functions
Provides selectivity estimates for the query optimizer, based on specified parameters.
ESTIMATE ( column-name [, value [, relation-string ] ] )
column-name The column used in the estimate.
value The value to which the column is compared.
relation-string The comparison operator used for the comparison, enclosed in single quotes; the default is '='.
SQL/92 Vendor extension.
SQL/99 Vendor extension.
Sybase Not supported in Adaptive Server Enterprise.
INDEX_ESTIMATE function [Miscellaneous]
ESTIMATE_SOURCE function [Miscellaneous]
The following statement returns the percentage of emp_id values estimated to be greater than 200. The precise value depends on the actions you have carried out on the database.
SELECT FIRST ESTIMATE( emp_id, 200, '>' ) FROM employee