• + 0 comments

    select concat(name, "(", left(occupation,1), ")" from occupations order by name;

    select concat("There are a total of", " ", count(*), " ", lower(occupation), "s", ".") from occupations group by occupation order by case when occupation = 'doctor' then 1 when occupation = 'actor' then 2 when occupation = 'singer' then 3 else 4 end ASC