Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)

  • RE: Cumulative sum of previous rows

    I did read your article and my solution is similar but there are differences - mainly that I'm joining to sub query that is grouping - where you originally are...

  • RE: Cumulative sum of previous rows

    Good article.. Thanks!..

    Here is how I would have solve the problem.

    UPDATE a

    SET a.netInventoryQty=c.inventoryQty-b.cQty

    --SELECT *

    FROM demand a

    INNER JOIN (

    select a.demandID, sum(b.orderQty) as cQty

    FROM demand a

    INNER JOIN demand...

Viewing 2 posts - 1 through 2 (of 2 total)