sql >> Base de Datos >  >> RDS >> Oracle

Total acumulado por grupo SQL (Oracle)

Ah, creo que lo he descubierto.

select a.*, sum(Amount) over (partition by Location, Product order by Date) as Running_Amt
from Example_Table a