moving to postgres

This commit is contained in:
Peter Wood
2023-03-04 18:23:05 -05:00
parent 477bfe3cfb
commit 9348a36809
20 changed files with 126 additions and 0 deletions

18
postgres/views/runbal.sql Normal file
View File

@@ -0,0 +1,18 @@
drop view public.runbal;
create view public.runbal
as
select
trxdate
, trxdescription
, trxamount
, to_char(trxdate, 'day') day_of_week
, sum(trxamount) over(
order by
trxdate
, trxamount desc rows unbounded preceding
) runningbal
from
public.budgetdetails