7.00.02 - SQL-MapReduce Call - Aster Analytics

Teradata Aster® Analytics Foundation User GuideUpdate 2

Product
Aster Analytics
Release Number
7.00.02
Published
September 2017
Content Type
Programming Reference
User Guide
Publication ID
B700-1022-700K
Language
English (United States)
Last Update
2018-04-17
SELECT * FROM pivot (
  ON pivot_input
  PARTITION BY sn, city, week
  ORDER BY week
  PartitionColumns ('sn', 'city', 'week')
  NumberOfRows (3) 
  TargetColumns ('value')
) ORDER BY 1,2,3;
The ORDER BY clause is optional. If omitted, the order of values can vary. The function always adds any NULL values at the end.