Viewing 2 posts - 2,851 through 2,853 (of 2,853 total)
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...
September 12, 2016 at 10:00 am
#1900359
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...
September 12, 2016 at 9:47 am
#1900353