TD_Histogram Syntax | Histogram | Teradata Vantage - TD_Histogram Syntax - Analytics Database

Database Analytic Functions

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2024-04-06
dita:mapPath
gjn1627595495337.ditamap
dita:ditavalPath
ayr1485454803741.ditaval
dita:id
jmh1512506877710
Product Category
Teradata Vantageā„¢
TD_Histogram (
  ON { table | view | (query) } AS InputTable
  [ ON { table | view | (query) } AS MinMax DIMENSION ]
  USING 
  MethodType ({ 'Sturges' | 'Scott' | 'Variable-Width' | 'Equal-Width' })
  TargetColumn ({'target_column' | 'target_column_range'[,...] })
  [ NBins ({'nbin' | nbin_i,... }) ]
  [ Inclusion ({ 'inclusion_val' | 'inclusion_val_i',... }) ]
  [ GroupbyColumns ({ 'group_column_i',... }) ]
)
You can call this function from:
  • The FROM clause of a SELECT statement
  • As part of a CREATE TABLE statement
  • As part of a CREATE VIEW statement