Sybase Adaptive Server Anywhere Reference page 352

Table of Contents

Advertisement

Alphabetical list of functions
Parameters
Examples
Standards and
compatibility
ESTIMATE function [Miscellaneous]
Function
Syntax
Parameters
Examples
Standards and
compatibility
See also
ESTIMATE_SOURCE function [Miscellaneous]
Function
Syntax
Parameters
334
date-expression
The date.
The following statement returns the value 5.
SELECT DOW( '1998-07-09' )
Vendor extension.
SQL/92
Not supported by Adaptive Server Enterprise.
Sybase
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 '='.
The following statement returns the number of
greater than 200. The precise value depends on the actions you have carried
out on the database.
SELECT DISTINCT ESTIMATE( emp_id, 200, '>' )
FROM employee
Vendor extension.
SQL/92
Sybase
Not supported in Adaptive Server Enterprise.
"Query Optimization" on page 835 of the book ASA User's Guide
Provides the source for selectivity estimates used by the query optimizer.
ESTIMATE_SOURCE ( column-name [, value [ , relation-string ] ]
column-name
The name of the column that is being investigated.
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 '='.
emp_id
values estimated to be

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Adaptive Server Anywhere and is the answer not in the manual?

Questions and answers

Table of Contents