There is a set of data columns date_fromand date_toin Oracle 10g (or, more likely, simply date_frombecause the length is constant).
I need to collapse overlapping intervals, for example. these lines:
date_from date_to
2015-01-01 2015-01-10
2015-01-03 2015-01-11
necessary:
2015-01-01 2015-01-11
I wonder if there is a way to query this neatly at a time without using cursors ... my query is huge and still doesn't ruin everything in extreme cases. Maybe there is some SQL extension in Oracle 10g for such problems that I can use?
Yuriy source
share