LESSER function [Miscellaneous]

Returns the lesser of two parameter values.

Syntax
LESSER( expression-1, expression-2 )
Parameters
  • expression-1   The first parameter value to be compared.

  • expression-2   The second parameter value to be compared.

Remarks

If the parameters are equal, the first value is returned.

See also
Standards and compatibility
  • SQL/2003   Vendor extension.

Example

The following statement returns the value 5.

SELECT LESSER( 10, 5 ) FROM dummy;