Reference Guide
>
TDV Support for SQL Functions
>
Aggregate Functions
>
LAST
LAST
The LAST() function returns the last value of the selected column.
Syntax
LAST(COLUMN_NAME)
Example
SELECT LAST(column_name) FROM table_name;