• I'm with Gail... this type of post seems to be becoming a habit with you. Where are these questions coming from? If they're coming from a MS test, I'd like to remind you that you agreed not to disclose the content of the test and you should stop posting them NOW.

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