Hi,
i have a table of number-objects with beginning and endnr:
10-15
16-20
25-30
32-32
35-35
36-36
37-40
And what i need is the min(beginning) and max(endnr) of each group containing sequential objects with PREV.endnr+1=NEXT.beginning:
10-20
25-30
32-32
35-40
I found SQL Query - Find block of sequential numbers, but it seems to be just the negation of what i need in a way that is not reversed so simply (or i did not really understand what happened there).
I thought about using hierarchical queries, but could not it out.
A workaround to the problem would be writing a PL/SQL-Function, but i dislike that. Pure SQL would be better.
Greetings Finomosec;