The difference between two dates in hours and minutes
SELECT TRUNC(minutes_ / 60) || ' Hours, ' || TRUNC(MOD(minutes_, 60)) || ' Minutes' diference FROM ( SELECT (sysdate - to_date('16/10/2019 18:45:00', 'DD/MM/YYYY HH24:MI:SS')) * 24 * 60 AS minutes_ FROM dual );
The difference between two dates in hours
SELECT ROUND(minutes_ / 60, 2) || ' Hours ' FROM ( SELECT (sysdate - to_date('16/10/2019 18:45:00', 'DD/MM/YYYY HH24:MI:SS')) * 24 * 60 AS minutes_ FROM dual );
Difference between two dates in hours (truncated)
SELECT ROUND(minutes_ / 60, 2) || ' Hours ' FROM ( SELECT (sysdate - to_date('16/10/2019 18:45:00', 'DD/MM/YYYY HH24:MI:SS')) * 24 * 60 AS minutes_ FROM dual );
source share