• I suspect that the very process of presenting and describing a problem often makes the solution suddenly pop into the head.

    Well said and absolutely true... the "Old School" method of writing down the steps to be done define the old "Divide and Conquer" method which is very effective in solving problems. Once done, those steps also make pretty good comments in the code.

    --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)