• + 0 comments

    Concat: is a function that joins (concatenates) multiple strings together.

    LEFT: to extract a specified number of characters from the left (beginning) side of a string.

    LOWER: Converts the occupation name to lowercase

    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 COUNT(Occupation) ASC,  Occupation ASC;