7.00.02 - SQL-MapReduce Call - Aster Analytics

Teradata Aster® Analytics Foundation User GuideUpdate 2

Product
Aster Analytics
Release Number
7.00.02
Published
September 2017
Content Type
Programming Reference
User Guide
Publication ID
B700-1022-700K
Language
English (United States)
Last Update
2018-04-17

The function calculates the correlation between each pair of columns in the TargetColumns argument. This example compares GDP to GDPdeflator, the employed population to GDP, the number of people unemployed, and the number of people in the armed forces.

SELECT * FROM Corr_Reduce (
  ON Corr_Map (
    ON corr_input PARTITION BY state
    TargetColumns('[2:3]', 'employed:gdp', 'employed:unemployed',
                   'employed:armedforces')
    KeyName ('key')
    GroupByColumns ('state')
  )
  PARTITION BY key,state
) ORDER BY 1, 3 DESC;