SQL-MapReduce Call - Aster Analytics

Teradata Aster® Analytics Foundation User GuideUpdate 2

Product
Aster Analytics
Release Number
7.00.02
Published
September 2017
Language
English (United States)
Last Update
2018-04-17
dita:mapPath
uce1497542673292.ditamap
dita:ditavalPath
AA-notempfilter_pdf_output.ditaval
dita:id
B700-1022
lifecycle
previous
Product Category
Software
SELECT * FROM npath (
  ON aggregate_clicks
  PARTITION BY sessionid
  ORDER BY clicktime
  MODE (nonoverlapping)
  PATTERN ('H+.D*.C{3,6}.D')
  SYMBOLS (pagetype = 'home' AS H, pagetype='checkout' AS C,
           pagetype <>'home' AND pagetype <>'checkout' AS D)
  RESULT (FIRST(sessionid OF C) AS sessionid,
          max_choose (productprice, productname OF C) AS
          most_expensive_product,
          MAX (productprice OF C) AS max_price,
          min_choose (productprice, productname of C) AS
          least_expensive_product,
          MIN (productprice OF C) AS min_price)
) ORDER BY sessionid;