Examples | Statistical Analysis | Vantage Analytics Library - Examples - Vantage Analytics Library

Vantage Analytics Library User Guide

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Lake
Product
Vantage Analytics Library
Release Number
2.2.0
Published
June 2025
ft:locale
en-US
ft:lastEdition
2025-07-02
dita:mapPath
ibw1595473364329.ditamap
dita:ditavalPath
iup1603985291876.ditaval
dita:id
zyl1473786378775
Product Category
Teradata Vantage

Required Parameters Only

Calculates count, min, max, mean, and standard deviation.

call td_analyze (
  'statistics',
  'database = val_source;
   tablename = customer;
   columns = income;'
);

Output Table, groupby, where

call td_analyze (
  'statistics',
  'database = val_source;
   tablename = customer;
   columns = income;
   outputdatabase = val_results;
   outputtablename = statistics;
   groupby = gender;
   where = income > 0;'
);

All Statistical Measures, Extended Options

call td_analyze (
  'statistics',
  'database = val_source;
   tablename = customer;
   columns = income;
   statsoptions = all;
   extendedoptions = all;'
);

Selected Statistical Measures, Extended Options, Return Sample Statistic

call td_analyze (
  'statistics',
  'database = val_source;
   tablename = customer;
   columns = income;
   statsoptions = all;
   extendedoptions = modes;
   statisticalmethod = sample;'
);