• + 0 comments

    This will work- select concat(name,"(" ,left(occupation,1), ")" ) as summary from occupations union all

    select concat("there are a total of " , count(*),' ' ,lower(occupation) ,"s.") as summary from occupations group by occupation order by case when summary like "there are a total%" then 2 else 1 end, summary;