MIN()

Advantage Concepts

Advantage Expression Engine function that returns the smaller of two numeric or date values

Syntax

MIN( <nExp1>, <nExp2> ) --> nSmaller

MIN( <dExp1>, <dExp2> ) --> dSmaller

Parameters

<nExp1> and <nExp2>

The numeric values to be compared.

<dExp1> and <dExp2>

The date values to be compared.

Return Values

MIN() returns the smaller of the two arguments. The value returned is the same data type as the arguments.

Remarks

MIN() is a numeric and date function that ensures the value of an expression is smaller than a specified minimum. The inverse of MIN() is MAX() which returns the greater of two numeric or date values.

Note Advantage Expression Engine functions can be used in expressions such as record filter expressions and index expressions. They are not necessarily scalars supported within SQL statements. For a list of supported SQL scalar functions, see Supported Scalar Functions.

See Also

MAX()