MAX()

Returns the maximum of two numbers or dates.

Syntax

MAX(<xValue>,<xValue1>) --> <xMax>

Arguments

<xValue> Any date or numeric value.

<xValue1> Any date or numeric value (same type as <xValue>).

Returns

<xMax> The larger numeric (or later date) value.

Description

This function returns the larger of the two passed espressions. If <xValue> and <xValue1> are numeric data types, the value returned by this function will be a numeric data type as well and will be the larger of the two numbers passed to it. If <xValue> and <xValue1> are date data types, the return value will be a date data type as well. It will be the later of the two dates passed to it.
Examples
      ? MAX(214514214,6251242142)
      ? MAX(CTOD('11/11/2000'),CTOD('21/06/2014')
Status

Ready

Compliance

This function is Ca-Clipper compliant.

Platforms

All

Files

Library is rtl

See Also