Tag: sql-case
MySQL GROUP BY with CASE statement not aggregating correctly when using multiple columns