tps/database/reports/hunt_bal.sql
2024-08-29 13:34:50 -04:00

9 lines
157 B
SQL

\timing
SELECT
r.*
,SUM(r."Amount") OVER (ORDER BY r."Date" asc , r.id) + 29909.75 balance
FROM
tpsv.hunt_mapped r
ORDER BY
r."Date" desc