Amazon Redshift Sql Pivot Not Grouping Correctly Stack Overflow

Amazon Redshift Sql Pivot Not Grouping Correctly Stack Overflow