CASE in Aggregation: Count by Category SQL Insights | Topfolio