7.00.02 - Option 2: For Single-Node Data Sets - 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 RANK() OVER (PARTITION BY column[,...] 
      ORDER BY column) AS rank, *
      FROM input_table 
      WHERE column IS NOT NULL
    ) AS input PARTITION BY column[,...] 
    ON (SELECT col[,...], COUNT(*) AS group_size
      FROM input_table 
      WHERE column IS NOT NULL c 
      GROUP BY column[,...] 
    ) AS groupstats PARTITION BY column[,...] 
  ValueColumn (value_column)
  [ Tests ('test' [,...]) ]
  Distributions ('distribution:parameters' [,...])
  [ GroupByColumns
    ({ 'group_by_column' | 'group_by_column_range' }[,...]) ]
  [ MinGroupSize (min_group_size) ]
  [ NumCell (cell_size) ]
  ) PARTITION BY column[,...] 
);