16.20 - WITH - Teradata Database

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

prodname
Advanced SQL Engine
Teradata Database
vrm_release
16.20
created_date
March 2019
category
Programming Reference
featnum
B035-1145-162K

Using the WITH clause, you can specify all Pivot columns using an asterisk (*) or a subset of columns on which the aggregation function needs to perform.

aggr_fn
An aggregate function.
column_list
A list of one or more columns. If the list contains more than one column, separate them with commas.
*
Option to include all the Pivot columns without specifying columns explicitly.
alias
Name of the aggregate result column.