database redesign

This commit is contained in:
Peter Wood
2022-08-02 06:12:02 -04:00
parent 27e7c7829c
commit 477bfe3cfb
5 changed files with 12 additions and 10 deletions

View File

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