[SQL 코딩테스트] 해커랭크 Advanced Select 정답
The PADS ⏰ 11:26 CONCAT 안에 COUNT 같은걸 넣고, 뒤에서 GROUP BY로 묶어줘도 문제가 없다는 걸 처음 알았다! SELECT CONCAT(NAME, '(', LEFT(OCCUPATION,1), ')') AS A FROM OCCUPATIONS ORDER BY 1 ; SELECT CONCAT('There are a total of ', COUNT(OCCUPATION), ' ', LOWER(OCCUPATION), 's.') AS A FROM OCCUPATIONS GROUP BY OCCUPATION ORDER BY COUNT(OCCUPATION), OCCUPATION ; Type of Triangle ⏰ 7:30 지난번에 리트코드인가에서 금방 풀었던 문제인데, CASE WHEN 구문 ..