tps/database/reports/dcard_bal.sql
2025-12-29 16:20:43 -05:00

10 lines
190 B
SQL

\timing
SELECT
r.*
,SUM(r."Amount") OVER (ORDER BY r."Post Date" asc , r."Description") + 1083.50 balance
FROM
tpsv.dcard_mapped r
ORDER BY
r."Post Date" desc
,id asc