I have two date columns, START_DATE and END_DATE and need to get a list of dates between two date columns in Oracle.
START_DATE   | END_DATE
04-JUN-19    | 06-JUN-19
11-AUG-19    | 13-AUG-19
Found a similar problem for sql server but couldn't convert to oracle pl/sql:
Need to get dates between two date columns
Tried like this but doesn't show the desired result.
with dates (dte, edte) as (
      select A.START_DATE, A.END_DATE
      FROM tbl A
      WHERE A.START_DATE <> A.END_DATE
      union all
      select dte + 1, edte
      from dates
      where dte < edte
     )
select dte
from dates;
I want to get list dates like:
2019-06-04
2019-06-05
2019-06-06
2019-08-11
2019-08-12
2019-08-13
But showing:
04-JUN-19
11-AUG-19
 
     
     
     
    