nPath Function | Teradata Vantage - nPath - Teradata VantageCloud Lake

Lake - Analyze Your Data with ClearScape Analytics™

Deployment
VantageCloud
Edition
Lake
Product
Teradata VantageCloud Lake
Release Number
Published
February 2025
ft:locale
en-US
ft:lastEdition
2026-02-20
dita:mapPath
tcl1683670667798.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
tcl1683670667798

The nPath function scans a set of rows, looking for patterns that you specify. For each set of input rows that matches the pattern, nPath produces a single output row. The function provides a flexible pattern-matching capability that lets you specify complex patterns in the input data and define the values that are output for each matched input set.



nPath is useful when your goal is to identify the paths that lead to an outcome. For example, you can use nPath to analyze:

  • Web site click data, to identify paths that lead to sales over a specified amount
  • Sensor data from industrial processes, to identify paths to poor product quality
  • Healthcare records of individual patients, to identify paths that indicate that patients are at risk of developing conditions such as heart disease or diabetes
  • Financial data for individuals, to identify paths that provide information about credit or fraud risks
Sankey Diagram of Database Engine 20 nPath Output
Sankey diagram of output of Database Engine 20 function nPath
  • This function requires the UTF8 client character set for UNICODE data.
  • This function does not support UNICODE input/output data for ACCUMULATE function of Result syntax element.
  • This function does not support UNICODE characters for Pattern syntax element and symbol in Symbols syntax element.
  • This function does not support Pass Through Characters (PTCs).

    For information about PTCs, see Database International Character Set Support.

  • This function does not support KanjiSJIS or Graphic data types.
  • When used with this function, the ORDER BY clause supports only ASCII collation.
  • When used with this function, the PARTITION BY clause assumes column names are in Normalization Form C (NFC).