• It wasn't an article. It was a post on the Running Total article and Tom updated it with a slightly different take on the check. Tom's post with both his an Paul White's code puts it altogether quite nicely at the following post, the URL for which is also posted at the beginning of the Running Total article. Heres' the link for Paul and Tom's contribution.

    http://www.sqlservercentral.com/Forums/FindPost981258.aspx

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