Programming/MySQL

[MySQL/Hackerrank] The PADS

hoojiv 2021. 11. 2. 14:37
728x90

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;

11/15일 2차풀이 - 6분

 

728x90
LIST