• Sean Lange (3/19/2013)


    Jeff we have seen this same loop in several threads in the last day or two. Chris posted a great solution on one of them that got rid of the nested loops. The one posted here seems to be a shortened version of the others.

    BWAA-HAAA!!! Thanks, Sean. Indeed, the most difficult nested loop of them all to solve is the one involving humans. 😀

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)