Teradata-Specific Functions and ANSI SQL:2011 Window Functions

Teradata Vantageā„¢ SQL Functions, Expressions, and Predicates

brand
Software
Teradata Vantage
prodname
Teradata Database
Teradata Vantage NewSQL Engine
vrm_release
16.20
category
Programming Reference
featnum
B035-1145-162K

The following table identifies equivalent ANSI SQL:2011 window functions for Teradata-specific functions.

The use of the Teradata-specific functions listed in the following table is strongly discouraged. These functions are retained only for backward compatibility with existing applications. Be sure to use the ANSI-compliant window functions for any new applications you develop.
Teradata-Specific Functions Equivalent ANSI SQL:2011 Window Functions
CSUM SUM
MAVG AVG
MDIFF(x, w, y) composable from SUM
MLINREG composable from SUM and COUNT
QUANTILE composable from RANK and COUNT
RANK RANK
MSUM SUM