Sql Redshift Query Returning Too Many Rows In Aggregate Join Stack

Sql Redshift Query Returning Too Many Rows In Aggregate Join Stack