mysql - 행 열 변환 쿼리
select a.nHsNo, sUserName, max(if(sdtDate_1 = 01, nHour, '')) as day_1, max(if(sdtDate_1 = 02, nHour, '')) as day_2, max(if(sdtDate_1 = 03, nHour, '')) as day_3, max(if(sdtDate_1 = 04, nHour, '')) as day_4, max(if(sdtDate_1 = 05, nHour, '')) as day_5, max(if(sdtDate_1 = 06, nHour, '')) as day_6, max(if(sdtDate_1 = 07, nHour, '')) as day_7, max(if(sdtDate_1 = 08, nHour, '')) as day_8, max(if(sdtD..
더보기