7.00.02 - SQL-MapReduce Call - Aster Analytics

Teradata Aster® Analytics Foundation User GuideUpdate 2

Product
Aster Analytics
Release Number
7.00.02
Release Date
September 2017
Content Type
Programming Reference
User Guide
Publication ID
B700-1022-700K
Language
English (United States)
SELECT * FROM npath (
  ON aggregate_clicks
  PARTITION BY sessionid
  ORDER BY clicktime
  MODE (nonoverlapping)
  PATTERN ('A*.C+.A*')
  SYMBOLS (productprice > 200 AND
          pagetype='checkout' AS C, true AS A)
  RESULT (FIRST(sessionid OF A) AS sessionid,
  ACCUMULATE (pagetype OF ANY(A,C)) AS path,
  AVG (productprice OF ANY(A,C)) AS sum)
) ORDER BY sessionid;