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;