tps/database/reports/dcard_bal.sql

9 lines
186 B
MySQL
Raw Normal View History

2023-03-24 21:43:28 -04:00
\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
2024-08-28 12:34:28 -04:00
r."Post Date" desc