7.00.02 - SQL-MapReduce Call - Aster Analytics

Teradata Aster® Analytics Foundation User GuideUpdate 2

Product
Aster Analytics
Release Number
7.00.02
Published
September 2017
Content Type
Programming Reference
User Guide
Publication ID
B700-1022-700K
Language
English (United States)
Last Update
2018-04-17
SELECT * FROM NPATH (
  ON trans1
  PARTITION BY userid ORDER BY ts
  MODE (nonoverlapping)
  PATTERN ('A+')
  SYMBOLS(TRUE AS A)
  RESULT (FIRST(userid OF A) AS Userid,
  LAST_NOTNULL (gender OF A) AS Gender,
  MAX_CHOOSE (productamt, productname OF A) AS Max_prod,
  MIN_CHOOSE (productamt, productname OF A) AS Min_prod)
) ORDER BY 1;