16.20 - WITH - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Functions, Expressions, and Predicates

Product
Advanced SQL Engine
Teradata Database
Release Number
16.20
Release Date
March 2019
Content Type
Programming Reference
Publication ID
B035-1145-162K
Language
English (United States)

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.