Compare commits
2 Commits
fcaf95fcdf
...
c56f59045a
Author | SHA1 | Date | |
---|---|---|---|
c56f59045a | |||
ab15e8cc2b |
14
database/reports/chase_bal.sql
Normal file
14
database/reports/chase_bal.sql
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
\timing
|
||||||
|
SELECT
|
||||||
|
r.id
|
||||||
|
,r.logid
|
||||||
|
,r."Type"
|
||||||
|
,r."Trans Date"
|
||||||
|
,r."Post Date"
|
||||||
|
,r."Description"
|
||||||
|
,-r."Amount" "Amount"
|
||||||
|
,SUM(-r."Amount") OVER (ORDER BY r."Post Date" asc , r.id) + 374.23 balance
|
||||||
|
FROM
|
||||||
|
tpsv.chase_default r
|
||||||
|
ORDER BY
|
||||||
|
r."Post Date" desc
|
8
database/reports/hunt_bal.sql
Normal file
8
database/reports/hunt_bal.sql
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user