Optional Syntax Elements for TD_UnivariateStatistics - Analytics Database

Database Analytic Functions

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Product
Analytics Database
Release Number
17.20
Published
June 2022
ft:locale
en-US
ft:lastEdition
2025-11-06
dita:mapPath
gjn1627595495337.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
jmh1512506877710
Product Category
Teradata Vantageā„¢
PartitionColumns
Specifies the names of the input table columns on which to partition the input. The function copies these columns to the output table.
Default behavior: The function treats all rows as a single partition.
Stats
Specifies the statistics to calculate. Options are as follows:
  • SUM
  • COUNT or CNT
  • MAXIMUM or MAX
  • MINIMUM or MIN
  • MEAN
  • UNCORRECTED SUM OF SQUARES or USS
  • NULL COUNT or NLC
  • POSITIVE VALUES COUNT or PVC
  • NEGATIVE VALUES COUNT or NVC
  • ZERO VALUES COUNT or ZVC
  • TOP5 or TOP
  • BOTTOM5 or BTM
  • RANGE or RNG
  • GEOMETRIC MEAN or GM
  • HARMONIC MEAN or HM
  • VARIANCE or VAR
  • STANDARD DEVIATION or STD
  • STANDARD ERROR or SE
  • SKEWNESS or SKW
  • KURTOSIS or KUR
  • COEFFICIENT OF VARIATION or CV
  • CORRECTED SUM OF SQUARES or CSS
  • MODE
  • MEDIAN or MED
  • UNIQUE ENTITY COUNT or UEC
  • INTERQUARTILE RANGE or IQR
  • TRIMMED MEAN or TM
  • PERCENTILES or PRC
  • ALL
Default: ALL
Centiles
Specifies the centile to calculate. Value is an integer in the range [1, 100].
Used with Stats (PERCENTILE), Stats (PRC), and Stats (ALL) only.
Default: 1, 5, 10, 25, 50, 75, 90, 95, 99
TrimPercentile
Specifies the trimmed lower percentile, an integer value in the range [1, 50]. The function calculates the mean of the values between the trimmed lower percentile (trimmed_percentile) and trimmed upper percentile (1-trimmed_percentile).
The function ignores TrimPercentile unless Stats specifies TRIMMED MEAN, TM, or ALL.
Used with Stats (TRIMMED MEAN), Stats (TM), and Stats (ALL) only.
Default: 20