Skip to Main Content

Breadcrumb

Question and Answer

Connor McDonald

Thanks for the question, Ahsan.

Asked: March 18, 2018 - 3:08 pm UTC

Last updated: March 20, 2018 - 7:27 am UTC

Version: Oracle 10G

Viewed 1000+ times

You Asked

Hi Tom,

i have a table MY_DATES (START_DATE DATE, END_DATE DATE) with date like :

START_DATE        END_DATE
---------------------------
18-DEC-17         07-JAN-18
27-JAN-18         06-FEB-18
08-MAR-18         18-MAR-18


i need to generate dates for all the date ranges in my table in a single column like below:

DATES
----------
18-DEC-17
19-DEC-17
12-DEC-17
.
.
.
06-JAN-18
07-JAN-18
27-JAN-18
28-JAN-18
29-JAN-18
.
.
.
05-FEB-18
06-FEB-18
08-MAR-18
09-MAR-18
10-MAR-18
.
.
.
18-MAR-18

appreciate your support in this regard.

and Connor said...


Is this answer out of date? If it is, please let us know via a Comment

More to Explore

SQL

The Oracle documentation contains a complete SQL reference.