• + 0 comments

    select concat(concat(Name,'(',left(Occupation,1)),')') from occupations order by Name

    ;

    with cte as (select count(*) as occupation_count ,occupation from occupations group by occupation order by occupation_count asc ) select concat("There are a total of"," " ,occupation_count," ",lower(occupation),"s.") from cte