Soldato
I'm struggling to find the right syntax in order to get the result of difference in days between two dates on oracle sql.
I'm clearly being daft; help
Code:
to_char(SCHEDULED_END_DATE, 'YYYY/MM/DD HH24:MI:SS') AS SCHED_END returns 2018/05/31 23:00:00
to_date(to_char(SCHEDULED_END_DATE, 'DD/MON/YYYY"'), 'DD/MON/YYYY') AS Short_date returns 31/05/2018
CURRENT_DATE AS Current_Short_Date returns 08/11/2018
to_date(to_char(SCHEDULED_END_DATE, 'DD/MON/YYYY"'), 'DD/MON/YYYY') - CURRENT_DATE AS Date_Difference
returns <Unable to read data>
I'm clearly being daft; help