• + 0 comments

    MY SQL

    SELECT CONCAT(name,'(',left(occupation,1),')') from OCCUPATIONS ORDER BY name ASC; SELECT CONCAT('There are a total of ',CONVERT(count(occupation),char),' ',lower(occupation),'s.') FROM OCCUPATIONS GROUP BY occupation ORDER BY count(occupation) ASC, occupation ASC;