ERROR: within group ORDER BY clauses for aggregate functions must be the same -- Redshift (Community)

Follow