17.10 - TD_BinCodeFit構文 - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - Advanced SQL Engine分析関数

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
2021年7月
Content Type
プログラミング リファレンス
Publication ID
B035-1206-171K-JPN
Language
日本語 (日本)

生成されたラベルを持つ等幅ビンの場合

CREATE TABLE primary_output_table AS (
  SELECT * FROM TD_BincodeFit (
    ON { table | view | (query) } AS InputTable
    [ OUT [ PERMANENT | VOLATILE ] TABLE OutputTable (output_table) ]
    USING
    TargetColumns ({ 'target_column' | target_column_range }[,...])
    MethodType ('equal-width')
    NBins ('single bin value' | 'separate bin values')
    [ LabelPrefix ('single prefix' | 'separate prefix values') ]
  ) AS alias
) WITH DATA;

指定したラベルを持つ可変幅ビンの場合

CREATE TABLE primary_output_table AS (
  SELECT * FROM TD_BincodeFit (
    ON { table | view | (query) } AS InputTable
    ON { table | view | (query) } AS FitInput DIMENSION
    USING
    TargetColumns ({ 'target_column' | target_column_range }[,...])
    MethodType ('variable-width')
    [ MinValueColumn ('minvalue_column') ]
    [ MaxValueCOlumn ('maxvalue_column') ]
    [ LabelColumn ('label_column') ]
    [ TargetColNames ('target_names_column') ]
  ) AS alias
) WITH DATA;