diff --git a/database/reports/hunt_bal.sql b/database/reports/hunt_bal.sql new file mode 100644 index 0000000..81c4604 --- /dev/null +++ b/database/reports/hunt_bal.sql @@ -0,0 +1,8 @@ +\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