Contents Index ERRORMSG function [Miscellaneous] ESTIMATE_SOURCE function [Miscellaneous]

ASA SQL Reference
  SQL Functions
    Alphabetical list of functions

ESTIMATE function [Miscellaneous]


Function 

Provides selectivity estimates for the query optimizer, based on specified parameters.

Syntax 

ESTIMATE ( column-name [, value  [, relation-string ] ] )

Parameters 

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 '='.

Standards and compatibility 
See also 

INDEX_ESTIMATE function [Miscellaneous]

ESTIMATE_SOURCE function [Miscellaneous]

Example 

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

Contents Index ERRORMSG function [Miscellaneous] ESTIMATE_SOURCE function [Miscellaneous]