179. 흉부외과 또는 일반 외과 의사 목록 출력하기

김해준's avatar
Jan 05, 2026
179. 흉부외과 또는 일반 외과 의사 목록 출력하기

사용언어 : MySQL

문제
notion image
notion image
notion image
풀이
SELECT DR_NAME, DR_ID, MCDP_CD, substr(HIRE_YMD,1,10) as HIRE_YMD from Doctor where MCDP_CD = 'CS' or MCDP_CD = 'GS' order by hire_ymd desc, dr_name asc;
notion image
Share article