• pierre-702284 (8/5/2013)


    Thanks for including my solution in the test results 🙂 I know it's not the fastest but it feels more "real world" because you usually need to take the year in to account as well as the month when producing monthly statistics. Nice article though 🙂

    Actually, I included yours because it was one of the few that included the year. I scaled it back to only use the same year of data as the others so we were comparing apples-to-apples for data but including the year is generally, as you say, a more real world solution. Thanks for posting it.

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