• + 0 comments

    select concat(name,'(',(left(occupation, 1)),')') from OCCUPATIONS order by name;

    select concat('There are a total of ' , count(occupation),' ', case when occupation = 'Doctor' then 'doctors' when occupation = 'Singer' then 'singers' when occupation = 'Actor' then 'actors' when occupation = 'Professor' then 'professors'

             end,'.')
    

    from occupations group by occupation order by count(occupation) asc, occupation asc