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)

ApproxSampleSize requires a summary (dimension) table.

SELECT * FROM sample (
  ON (SELECT stratum, count(*) AS stratum_count FROM
      score_category GROUP BY stratum) AS summary DIMENSION
  ON score_category PARTITION BY ANY
  StratumColumn ('stratum')
  Strata ('excellent', 'fair', 'very good')
  ApproxSampleSize ('5', '10', '5')
  Seed ('2')
) ORDER BY stratum, id;