Ah, jag tror att jag har kommit på det.
select a.*, sum(Amount) over (partition by Location, Product order by Date) as Running_Amt
from Example_Table a
Ah, jag tror att jag har kommit på det.
select a.*, sum(Amount) over (partition by Location, Product order by Date) as Running_Amt
from Example_Table a