tps/database/reports/dcard_bal.sql

9 lines
178 B
MySQL
Raw Normal View History

2023-03-24 21:43:28 -04:00
\timing
SELECT
r.*
2024-08-28 12:53:33 -04:00
,SUM(r."Amount") OVER (ORDER BY r."Post Date" asc , r."Description") + 1083.50 balance
2023-03-24 21:43:28 -04:00
FROM
2024-08-29 13:34:50 -04:00
tpsv.dcard_mapped r
2023-03-24 21:43:28 -04:00
ORDER BY
2024-08-28 12:34:28 -04:00
r."Post Date" desc