Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Tags
more
Archives
Today
Total
관리 메뉴

dearbeany

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

Oracle

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

dearbeany 2023. 11. 22. 20:00
select mcdp_cd as 진료과코드, count(apnt_no) as "5월예약건수"
from appointment
where to_char(apnt_ymd, 'yyyymm') = '202205'
group by mcdp_cd
order by count(apnt_no), mcdp_cd;