tps/reports/dcard_bal.sql
Paul Trowbridge 0301883d49 migrate
2018-05-29 23:14:41 -04:00

8 lines
184 B
SQL

\timing
SELECT
r.*
,SUM(r."Amount") OVER (ORDER BY r."Post Date" asc , r."Description") + 1061.1 + 22.40 balance
FROM
tpsv.dcard_default r
ORDER BY
r."Post Date" asc