• Jasmine D. Adamson - Wednesday, September 20, 2017 6:03 PM

    Thanks Jeff, those are very helpful! I like that way of describing what's going on. Good to see you also. I haven't been here in years, but I do remember you 🙂

    Thanks, Jasmine.  I had a "testing artifact" with an "x" in it in the code I posted and your the required call to the scalar function was commented out.  I've repaired that in the code above.

    Any chance of you posting that scalar function just to see if we can make any performance improvements to it without changing its function or interface?

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