Returns the lesser of two parameter values.
LESSER( expression-1, expression-2 )
expression-1 The first parameter value to be compared.
expression-2 The second parameter value to be compared.
The return type for this function depends on the expressions specified. That is, when the database server evaluates the function, it first searches for a data type in which all the expressions can be compared. When found, the database server compares the expressions and then returns the result in the type used for the comparison. If the database server cannot find a common comparison type, an error is returned.
If the parameters are equal, the first value is returned.
SQL/2003 Vendor extension.
The following statement returns the value 5.
SELECT LESSER( 10, 5 ) FROM dummy; |
Discuss this page in DocCommentXchange. Send feedback about this page using email. |
Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1 |