Input, Symbols, and Symbol Predicates - Aster Analytics

Teradata Aster Analytics Foundation User Guide

Product
Aster Analytics
Release Number
6.21
Published
November 2016
Language
English (United States)
Last Update
2018-04-14
dita:mapPath
kiu1466024880662.ditamap
dita:ditavalPath
AA-notempfilter_pdf_output.ditaval
dita:id
B700-1021
lifecycle
previous
Product Category
Software

This statement creates the input table of clickstream data that the examples use:

CREATE TABLE clicks1 (
  ts TIME,
  userid INTEGER,
  sessionid INTEGER
  pageid INTEGER,
  category INTEGER,
  val FLOAT,
  referrer VARCHAR (256)
) DISTRIBUTE BY HASH (category);

The following table summarizes the symbols and symbol predicates that the examples use.

nPath Clickstream Data Examples Symbols and Symbol Predicates
Symbol Symbol Predicate
A pageid IN (10, 25)
B category = 10 OR (category = 20 AND pageid <> 33)
C category IN (SELECT pageid FROM clicks1 GROUP BY userid HAVING COUNT(*) > 10)
D referrer LIKE '%Amazon%'
X true