15.10 - MAX(value_expression) - Teradata Database

Teradata Database SQL Data Definition Language Syntax and Examples

prodname
Teradata Database
vrm_release
15.10
created_date
December 2015
category
Programming Reference
featnum
B035-1144-151K

Use the MAX aggregate function to compute the maximum value in the column or column expression, specified by value_expression. MAX is valid for character data as well as numeric data. For a character expression, MAX returns the highest sort order.

Each aggregate join index must be created with a COUNT(*) or COUNT(value_expression). If you do not specify such an expression, Teradata Database adds a COUNT(*) by default.

You cannot specify a MIN function in the definition of a column-partitioned join index.

For more information about the MAX aggregate function, see SQL Functions, Operators, Expressions, and Predicates, B035-1145.