SQL

[프로그래머스] 진료과별 총 예약 횟수 출력하기

hminor 2023. 7. 13. 11:08
SELECT MCDP_CD AS 진료과코드, COUNT(*) AS 5월예약건수
    FROM APPOINTMENT 
    WHERE APNT_YMD LIKE '2022-05%' 
    GROUP BY MCDP_CD
    ORDER BY 2, 1