๋ฐ์ํ
https://school.programmers.co.kr/learn/courses/30/lessons/132202
-- ์ฝ๋๋ฅผ ์
๋ ฅํ์ธ์
SELECT MCDP_CD as '์ง๋ฃ๊ณผ์ฝ๋', count(APNT_NO) as '5์์์ฝ๊ฑด์'
from APPOINTMENT
where APNT_YMD between '2022-05-01' and '2022-05-31'
group by MCDP_CD
order by count(APNT_NO), MCDP_CD;
๋ฐ์ํ