[프로그래머스 SQL] 8. 12세 이하인 여자 환자 목록 출력하기

김건우's avatar
Mar 25, 2025
[프로그래머스 SQL] 8. 12세 이하인 여자 환자 목록 출력하기

문제

notion image

내가 푼 코드

notion image
SELECT PT_NAME, PT_NO, GEND_CD, AGE, if (TLNO is null, "NONE", TLNO) TLNO FROM PATIENT where age <= 12 and GEND_CD = "W" ORDER BY AGE desc, PT_NAME asc;
Share article

gunwoo