NTree Syntax - Teradata Vantage

Machine Learning Engine Analytic Function Reference

Product
Teradata Vantage
Release Number
8.00
1.0
Published
May 2019
Language
English (United States)
Last Update
2019-11-22
dita:mapPath
blj1506016597986.ditamap
dita:ditavalPath
blj1506016597986.ditaval
dita:id
B700-4003
lifecycle
previous
Product Category
Teradata Vantage™

Version 1.2

This function requires "@coprocessor".
SELECT * FROM NTree@coprocessor (
  ON { table | view | (query) }
    PARTITION BY partition_column [,...]
    [ ORDER BY ordering_column [,...] ]
  USING
  Root_Node (root_node_expression)
  Node_ID (node_id_expression)
  Parent_ID (parent_id_expression)
  AllowCycles ({'true'|'t'|'yes'|'y'|'1'|'false'|'f'|'no'|'n'|'0'})
  Starts_With ({ 'root' | 'leaf' | starting_node_id_expression })
  Mode ({ 'up' | 'down' })
  Output ({ 'end' | 'all' })
  [ MaxDistance (max_distance) ]
  [ Logging ({'true'|'t'|'yes'|'y'|'1'|'false'|'f'|'no'|'n'|'0'})]
  Result (aggregate [,...])
) AS alias;