Aggregate UDF | SQL Operators & User-Defined Functions | Teradata Vantage - Aggregate UDF - Advanced SQL Engine - Teradata Database

SQL Operators and User-Defined Functions

Product
Advanced SQL Engine
Teradata Database
Release Number
17.00
Published
September 2020
Language
English (United States)
Last Update
2023-04-27
dita:mapPath
qqu1556127655717.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1210
lifecycle
previous
Product Category
Teradata Vantage™

Purpose

Takes grouped sets of relational data, makes a pass over each group, and returns one result for the group.

Syntax

udf_name ( [ argument [,...] ] )

For UDFs that are defined with parameters of TD_ANYTYPE data type:

( udf_name
  { () RETURNS { data_type | STYLE column_expr } |

    ( argument [,...] )
      [ RETURNS { data_type | STYLE column_expr } ]
  }
)
udf_name
The name of the aggregate UDF.
argument
A valid SQL expression. See Usage Notes for rules that apply to aggregate UDF arguments.
data_type
The desired return type of the TD_ANYTYPE result parameter.
column_expr
A table or a view column reference that determines the return type of the TD_ANYTYPE result parameter.