Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » UltraLite - Database Management and Reference » UltraLite SQL Function Reference » Alphabetical list of functions

LTRIM function [String] Next Page

MAX function [Aggregate]

Returns the maximum expression value found in each group of rows.

Syntax 1

MAX( expression | DISTINCT expression )


expression    The expression for which the maximum value is to be calculated. This is commonly a column name.

DISTINCT expression    Returns the same as MAX( expression ), and is included for completeness.


Rows where expression is NULL are ignored. Returns NULL for a group containing no rows.

See also
Standards and compatibility

The following statement returns the value 138948.000, representing the maximum salary in the Employees table.

SELECT MAX( Salary )
FROM Employees;