Skip to content
Advertisement

Generating dates between two dates

I need to generate all dates between two given dates. This works fine as long as there is just one date range. However, if I have multiple date ranges, this solution doesn’t work. I have searched here as well as on asktom, but couldn’t locate relevant pointers/solution.

I tried both the solutions using all_objects and CONNECT BY ROWNUM, but no luck. Here is the problem statement: sqlfiddle

Input

Output

Advertisement

Answer

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement