initial commit

This commit is contained in:
Peter Wood
2022-07-15 15:37:20 -04:00
parent 70a85b6024
commit 27e7c7829c
13 changed files with 249 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
use Leo
go
create view dbo.vw_BUDGET_RUNNING_BAL
as
select
BDT_DATE, BDT_DESCRIPTION, BDT_AMOUNT
, sum(BDT_AMOUNT) over(order by BDT_DATE, BDT_AMOUNT desc rows unbounded preceding) RUNNING_BAL
from dbo.BUDGET_DETAIL

View File

@@ -0,0 +1,8 @@
use Leo
go
create view dbo.vw_CURR_MONTH_BUDGET
as
select *
from dbo.vw_BUDGET_RUNNING_BAL
where BDT_DATE between dateadd(DAY, 1, EOMONTH(getDate(), -1)) and eomonth(getDate())