16.20 - nPath Syntax - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantage™ - NewSQL Engine Analytic Functions

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Release Date
July 2019
Content Type
Programming Reference
Publication ID
B035-1206-162K
Language
English (United States)
SELECT * FROM nPath (
  ON { table | view | (query) } 
    PARTITION BY partition_column 
    ORDER BY order_column [ ASC | DESC ][...]
  [ ON { table | view | (query) } 
    [ PARTITION BY partition_column | DIMENSION ]
    ORDER BY order_column [ ASC | DESC ] 
  ][...]
  USING 
  Mode ({ OVERLAPPING | NONOVERLAPPING })
  Pattern ('pattern')
  Symbols ({ col_expr = symbol_predicate AS symbol}[,...])
  [ Filter (filter_expression[,...]) ]
  Result ({ aggregate_function (expression OF [ANY] symbol [,...]) AS alias_1 }[,...])
) AS alias_2;