Difference between revisions of "MAX()"
From Recital Documentation Wiki
Yvonnemilne (Talk | contribs) (MAX() moved to SQL MAX()) |
Helengeorge (Talk | contribs) |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| − | + | ==Purpose== | |
| + | Function to return maximum value function | ||
| + | |||
| + | |||
| + | ==Syntax== | ||
| + | MAX(<exp1>,<exp2>) | ||
| + | |||
| + | |||
| + | ==See Also== | ||
| + | [[AMAX()]], [[AMIN()]], [[IIF()]], [[MIN()]], [[MOD()]] | ||
| + | |||
| + | |||
| + | ==Description== | ||
| + | The MAX() function returns the greater of the two expressions <exp1> and <exp2>. These expressions can be of numeric or date data types. | ||
| + | |||
| + | |||
| + | ==Example== | ||
| + | <code lang="recital"> | ||
| + | ? max(1, 3) | ||
| + | 3 | ||
| + | set date british | ||
| + | ? max(ctod("15/10/1997"), ctod("14/10/1997")) | ||
| + | 15/10/1997 | ||
| + | </code> | ||
| + | |||
| + | |||
| + | ==Products== | ||
| + | Recital Server, Recital | ||
| + | [[Category:Documentation]] | ||
| + | [[Category:Functions]] | ||
| + | [[Category:Numeric Data]] | ||
| + | [[Category:Numeric Data Functions]] | ||
Latest revision as of 16:45, 3 December 2009
Purpose
Function to return maximum value function
Syntax
MAX(<exp1>,<exp2>)
See Also
AMAX(), AMIN(), IIF(), MIN(), MOD()
Description
The MAX() function returns the greater of the two expressions <exp1> and <exp2>. These expressions can be of numeric or date data types.
Example
? max(1, 3) 3 set date british ? max(ctod("15/10/1997"), ctod("14/10/1997")) 15/10/1997
Products
Recital Server, Recital