• First, apologies for not having the rewrite on the running total article done, yet.

    Part of the reason it's not done yet is I've been testing the heck out of some very large examples. In the process of doing that, I've determined that specifying the index hint is absolutely NOT necessary on single table Quirky Updates. You do, of course, need a clustered index for the update to follow and it must use a 3 part update as well as following some other simple rules. Another of those rules is that it must be a single table update. By that I mean, no joins... period.

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