MODE Function | Teradata Vantage - 17.10 - MODE - Advanced SQL Engine - Teradata Database

Teradata Vantageā„¢ - Time Series Tables and Operations

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1208-171K
Language
English (United States)

Returns the mode of all values in each group. In the event of a tie between two or more values from value_expression, a row per result is returned. MODE is a single-threaded function.

To invoke the time series version of this function, use the GROUP BY TIME clause. For more information, see GROUP BY TIME Clause.

Return Values

The return value is the same data type as the input.

Nulls are not included in the result computation.

Usage Notes

MODE is valid only for numeric data.