NTree Function Syntax | Teradata Vantage - NTree Syntax - Teradata Vantage

Machine Learning Engine Analytic Function Reference

Product
Teradata Vantage
Release Number
9.02
9.01
2.0
1.3
Published
February 2022
Language
English (United States)
Last Update
2022-02-10
dita:mapPath
rnn1580259159235.ditamap
dita:ditavalPath
ybt1582220416951.ditaval
dita:id
B700-4003
lifecycle
previous
Product Category
Teradata Vantageā„¢

Version 1.6

This function requires "@coprocessor".
SELECT * FROM NTree@coprocessor (
  ON { table | view | (query) }
    PARTITION BY { 1 | partition_column [,...] }
    [ ORDER BY ordering_column [,...] ]
  USING
  RootNode (root_node_expression)
  NodeID (node_id_expression)
  ParentID (parent_id_expression)
  [ AllowCycles ({'true'|'t'|'yes'|'y'|'1'|'false'|'f'|'no'|'n'|'0'}) ]
  StartsWith ({ 'root' | 'leaf' | starting_node_id_expression })
  Direction ({ 'up' | 'down' })
  OutputType ({ 'end' | 'all' })
  [ MaxDistance (max_distance) ]
  [ OutputLogMessages ({'true'|'t'|'yes'|'y'|'1'|'false'|'f'|'no'|'n'|'0'})]
  Results (aggregate [,...])
) AS alias;