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 clickstream
    PARTITION BY userid
    ORDER BY userid, sessionid, clicktime
  MODE (OVERLAPPING)
  PATTERN ('A.B')
  SYMBOLS (true AS A, true AS B)
  RESULT (FIRST (sessionid OF A) AS sessionid,
          FIRST (pagetype OF A) AS pageid,
          FIRST (pagetype OF B) AS next_pageid)
) ORDER BY sessionid;