Q&A for people looking to improve their interpersonal communication skills
select tmp.Class,count(tmp.Id) as Cnt from (select Id, Class from Badges where year(Date) = 2016 and month(Date) = 1) tmp group by tmp.Class order by count(tmp.Id);