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

View File

@@ -0,0 +1,9 @@
use Leo
go
alter view dbo.vw_BudgetRunningBalance
as
select
TrxId, TrxDate, TrxDate_ISO8601=convert(datetime, TrxDate, 126), TrxDescription, TrxAmount
, sum(TrxAmount) over(order by TrxDate, TrxAmount desc rows unbounded preceding) RunningBal
from dbo.BUDGET_DETAIL

View File

@@ -0,0 +1,8 @@
use Leo
go
alter view dbo.vw_CurrentMonthBudget
as
select *
from dbo.vw_BudgetRunningBalance
where TrxDate between dateadd(DAY, 1, EOMONTH(getDate(), -1)) and eomonth(getDate())