WITH t AS ( SELECT '1330' stm, '1400' etm FROM dual UNION ALL SELECT '1530', '1700' FROM dual UNION ALL SELECT '1800', '1900' FROM dual ) SELECT stm, etm , ROUND(( TO_DATE(etm, 'hh24mi') - TO_DATE(stm, 'hh24mi') ) * 24, 2) h -- 날짜 연산 후 시간 환산 , ROUND( FLOOR(etm/100) + MOD(etm,100)/60 - FLOOR(stm/100) - MOD(stm,100)/60 , 2) h -- 수치 연산 FROM t ;