I have a table1(startnumber, endnumber) in oracle;
Now I need to select all the numbers lies in between startnumber and endnumber from table1
data eg.
table1
startnumber endnumber
10 15
18 22
34 50
Now I need the result set as:
10,11,12,13,14,15,18,19,20,21,22,34,35..... and so on
How do i do that
if you wanted the values comma separated you could do as such (or if on 11gr2 use listAgg)
STARTNR SEQ
10 10,11,12,13,14,15
18 18,19,20,21,22
34 34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50