• I get that not everyone can know everything but the truth eventually came out. The OP didn't even try to help himself and wanted others to do the research for him. It came across that way from the git.

    Anyway, I fear that you and I are going to have to agree to disagree. That, not withstanding, I do appreciate your thoughtful input.

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