I have a table with two columns that contains the start and end of a sequence of integers. It's a large list, but I'm pretty sure there are no overlaps in any of the ranges. I want to generate a list of all numbers contained within these range start and end bounds.
Basically I want to do the opposite of this question: How to create number ranges from a list of numbers?
From what I've read, my best guess at a solution might be some sort of dynamic cross apply, but I'm not really sure how to even begin that.
My table looks something like this:
Table
RangeStart RangeEnd
200 205
208 209
221 221
222 224
I want something like this:
Desired Result
Sequence
200
201
202
203
204
205
208
209
221
222
223
224