-- https://school.programmers.co.kr/learn/courses/30/lessons/132203 SELECT DR_NAME, DR_ID, MCDP_CD, DATE_FORMAT(HIRE_YMD,'%Y-%m-%d') FROM DOCTOR WHERE MCDP_CD IN ('CS','GS') ORDER BY HIRE_YMD DESC, DR_NAME ASC
date_format 대신 left(HIRE_YMD, 10)도 됨!
date_format
left(HIRE_YMD, 10)