From ab15e8cc2bc0e8653f6e19e146e5eca6e6c6c919 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Wed, 28 Aug 2024 12:42:56 -0400 Subject: [PATCH] huntington balance --- database/reports/hunt_bal.sql | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 database/reports/hunt_bal.sql 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