1.1 - 8.10 - TimeSeriesOrders Example: PartitionColumns - Teradata Vantage

Teradata Vantage™ - Machine Learning Engine Analytic Function Reference

Product
Teradata Vantage
Release Number
1.1
8.10
Release Date
October 2019
Content Type
Programming Reference
Publication ID
B700-4003-079K
Language
English (United States)

SQL Call

SELECT * FROM TimeSeriesOrders (   
  ON milk_3 AS InputTable PARTITION BY id_partition ORDER BY period ASC
  USING
  PartitionColumns ('id_partition')
  TimeColumns ('period')
  ResponseColumn ('milkpound')
) AS dt ORDER BY id_partition;

Output

The specified partition column, id_partition, appears in the output table.

 id_partition p d q include_drift include_mean 
 ------------ - - - ------------- ------------ 
            1 1 1 1             0            0
            2 0 1 2             0            0

Download a zip file of all examples and a SQL script file that creates their input tables from the attachment in the left sidebar.