Advanced Select

Jimin·2022년 8월 24일
0

HackerRank

목록 보기
3/27

SELECT NAME || '(' || SUBSTR(Occupation, 1, 1) ||')'
FROM (SELECT * FROM OCCUPATIONS ORDER BY Occupation)
UNION
SELECT 'There are a total of '|| count(*) || ' ' || LOWER(Occupation) ||'s.'
FROM (SELECT * FROM OCCUPATIONS ORDER BY count(*))
GROUP BY Occupation;

https://www.hackerrank.com/challenges/the-pads/problem?isFullScreen=true&h_r=next-challenge&h_v=zen

profile
https://github.com/Dingadung

0개의 댓글