SELECT MCDP_CD AS 진료과코드, COUNT(MCDP_CD) AS "5월예약건수" FROM APPOINTMENT WHERE TO_CHAR(APNT_YMD, 'MM') = '05' GROUP BY MCDP_CD ORDER BY COUNT(MCDP_CD), MCDP_CD;
문제를 잘 보자