Forum Replies Created

Viewing 2 posts - 2,851 through 2,853 (of 2,853 total)

  • RE: Running totals on different columns

    Right. My bad.

    My version of it would have given you wrong results as it would have started at 0 whenever the date changed.

    Good job figuring...

  • RE: Running totals on different columns

    Have you tried using partition by in your second one instead of order by? That is:

    SUM(Quantity) OVER (PARTITION BY EffectiveDate ORDER BY Holder RANGE UNBOUNDED PRECEDING) AS TQuantity

    you may...

Viewing 2 posts - 2,851 through 2,853 (of 2,853 total)