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 DistnmatchReduce (
  ON DistnmatchMultipleInput (
    ON (SELECT COUNT(1) AS counts,
        SUM(COUNT(1)) OVER (PARTITION BY park_name, season
        ORDER BY age) AS rank, park_name, season, age
        FROM age_distribution
        WHERE age IS NOT NULL
        GROUP BY park_name, season, age) AS input PARTITION BY ANY
    ON (SELECT park_name, season,
        COUNT(*) AS group_size,
        AVG(age) AS mean,
        STDDEV(age) AS sd,
        MAX(age) AS maximum,
        MIN(age) AS minimum
        FROM age_distribution
        WHERE age IS NOT NULL
        GROUP BY park_name, season) AS groupstats DIMENSION
    ValueColumn ('age')
    Tests ('KS', 'AD', 'CHISQ')
    GroupingColumns ('park_name', 'season')
    MinGroupSize ('50')
    NumCell ('10')
  ) PARTITION BY park_name, season
);