1.0 - 8.00 - Pivoting Syntax - Teradata Vantage

Teradata® Vantage Machine Learning Engine Analytic Function Reference

Product
Teradata Vantage
Release Number
1.0
8.00
Release Date
May 2019
Content Type
Programming Reference
Publication ID
B700-4003-098K
Language
English (United States)

Version 1.8

SELECT * FROM Pivoting (
  ON { table | view | (query) } PARTITION BY partition_column [,...]
  [ ORDER BY order_column]
  USING
  PartitionColumns ({ 'partition_column' | partition_column_range }[,...])
  { NumberOfRows (number_of_rows) |
    PivotColumn ('pivot_column')
    [ PivotKeys ('pivot_key' [,...]) ]
    [ NumericPivotKey ({'true'|'t'|'yes'|'y'|'1'|'false'|'f'|'no'|'n'|'0'}) ]
  }
  TargetColumns ({ 'target_column' | 'target_column_range' }[,...])
) AS alias;