Home Forums SQL Server 2008 T-SQL (SS2K8) Need to keep a running total of OnHandQty Minus OrderQty RE: Need to keep a running total of OnHandQty Minus OrderQty

  • sdownen05 (8/27/2015)


    Jeff,

    Thanks for the tips. Two things. Right now, our data set is small enough that the performance hit will be negligible; however it is expected to increase, so I will be proactive with it.

    Second, the link you sent doesn't work for me. Could I kindly ask you to re-send it?

    Thank you.

    Steve

    My apologies. It would help if I linked it as a URL instead of an image. :blush: Here's the clickable link...

    http://www.sqlservercentral.com/articles/T-SQL/61539/

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