7.00.02 - Best-Match Mode Syntax (INTEGER Input) - Aster Analytics

Teradata Aster® Analytics Foundation User GuideUpdate 2

Product
Aster Analytics
Release Number
7.00.02
Release Date
September 2017
Content Type
Programming Reference
User Guide
Publication ID
B700-1022-700K
Language
English (United States)
Version 1.0
SELECT * FROM DistnmatchReduce (
  ON DistnmatchMultipleInput (
    ON (SELECT COUNT(1) AS counts,
      SUM(COUNT(1)) OVER (PARTITION BY column[,...]
      ORDER BY column) AS rank,
      column [,...], column 
      FROM input_table 
      WHERE column IS NOT NULL
      GROUP BY column [,...], column 
    ) AS input PARTITION BY ANY
    ON (SELECT column [,...],
      COUNT(*) AS group_size,
      AVG (column) AS mean,
      STDDEV (column) AS sd,
      MAX (column) AS maximum,
      MIN (column) AS minimum
      FROM input_table 
      WHERE column IS NOT NULL
      GROUP BY column[,...]
    ) AS groupstats DIMENSION
    ValueColumn (column)
    [ Tests ('test' [,...]) ]
    [ Distributions ('distribution1:parameter1' [,... ]) ]
    [ GroupByColumns
    ({ 'group_by_column' | 'group_by_column_range' }[,...]) ]
    MinGroupSize (minGroupSize)
    [ NumCell (cell_Size) ]
  ) PARTITION BY column[,...]
  [ Top ('top') ]
);