tps/database/reports/hunt_bal.sql

9 lines
158 B
MySQL
Raw Normal View History

2024-08-28 12:42:56 -04:00
\timing
SELECT
r.*
,SUM(r."Amount") OVER (ORDER BY r."Date" asc , r.id) + 29909.75 balance
FROM
tpsv.hunt_default r
ORDER BY
r."Date" desc