7.00.02 - Example 3: Unconditional Sampling with Total (Single) Approximate SampleSize - Aster Analytics

Teradata Aster® Analytics Foundation User GuideUpdate 2

Aster Analytics
Release Number
Release Date
September 2017
Content Type
Programming Reference
User Guide
Publication ID
English (United States)

This example uses the ApproxSampleSize argument and a summary (dimension) table as inputs. The summary table containing the stratum count information is generated with the following SQL code:

SELECT stratum, count(*) AS stratum_count FROM score_category GROUP BY stratum;
Sample Example 3 Summary Table
stratum stratum_count
very good 9
fair 77
excellent 14