TD_RowNormalizeTransform Example | RowNormalizeTransform - Example: How to Use TD_RowNormalizeTransform - 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ā„¢

InputTable from TD_RowNormalizeFit Output: rowNormalizeFit_input

 id x y  
 -- - -- 
  1 0  1
  2 3  4
  3 5 12
  4 7 24

FitTable from TD_RowNormalizeFit Output: rowNormalizeFit_output

TD_KEY_ROWFIT TD_VALUE_ROWFIT x    y    
 ------------- --------------- ---- ---- 
 Approach      INDEX           null null
 BaseColumn     y              null null
 BaseValue      100            null null

TD_RowNormalizeTransform SQL Call

SELECT * FROM TD_RowNormalizeTransform (
  ON rowNormalizeFit_input AS InputTable
  ON rowNormalizeFit_output AS FitTable DIMENSION
  USING
  Accumulate ('id')
) AS dt;

TD_RowNormalizeTransform Output

id    x       y             
-- ------- ------
 1  0.00   100.00
 2 75.00   100.00
 3 41.66   100.00
 4 29.16   100.00