clanguage1
Programmer
Hello,
does anyone knows of a way to group a set of records everytime a break in a sequence occurs. Let me explain.
I have a sequence of numbers like 1,2,3,4,5,7,8,9 when I reach the break (6) I need to group 1,2,3,4, and 5 together and 7,8, and 9 next and so on.
I have it working with a cursor but it seems slow. There has to be a more elegant and better way to do it.
Any help would be appreciated. In advance thank you
does anyone knows of a way to group a set of records everytime a break in a sequence occurs. Let me explain.
I have a sequence of numbers like 1,2,3,4,5,7,8,9 when I reach the break (6) I need to group 1,2,3,4, and 5 together and 7,8, and 9 next and so on.
I have it working with a cursor but it seems slow. There has to be a more elegant and better way to do it.
Any help would be appreciated. In advance thank you