We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 690a7fe commit eed57daCopy full SHA for eed57da
프로그래머스/2/132202. 진료과별 총 예약 횟수 출력하기/README.md
@@ -16,7 +16,7 @@ Empty
16
17
### 제출 일자
18
19
-2025년 06월 28일 18:56:19
+2025년 11월 10일 11:45:45
20
21
### 문제 설명
22
프로그래머스/2/132202. 진료과별 총 예약 횟수 출력하기/진료과별 총 예약 횟수 출력하기.sql
@@ -1,7 +1,7 @@
1
-SELECT
2
- MCDP_CD AS '진료과 코드',
3
- COUNT(*) AS '5월예약건수'
4
-FROM APPOINTMENT
5
-WHERE APNT_YMD REGEXP '2022-05'
6
-GROUP BY MCDP_CD
7
-ORDER BY COUNT(*), MCDP_CD
+select
+mcdp_cd as '진료과코드',
+count(*) as '5월예약건수'
+from APPOINTMENT
+where apnt_ymd like '2022-05%'
+group by mcdp_cd
+order by count(*), mcdp_cd;
0 commit comments