>This will never be a case based on the GUI design behind this table.
>Sergey solution works great and is much more simpler to understand than my cursor based processing.
>
>Thanks again for your help.
>Daniel
Ok, I guess I would not need to work on this after Shabbath after all, though I wanted to try to solve this myself as an interesting problem.
I would have solved it differently using INNER JOINS and CTE though, so I may still try it later on.
If it's not broken, fix it until it is.
My Blog