mirror of
https://github.com/acedanger/budget-database.git
synced 2025-12-06 07:00:14 -08:00
moving to postgres
This commit is contained in:
12
mysql/functions/tvf_BudgetInPeriod.sql
Normal file
12
mysql/functions/tvf_BudgetInPeriod.sql
Normal file
@@ -0,0 +1,12 @@
|
||||
use Leo
|
||||
go
|
||||
|
||||
alter function dbo.tvf_BudgetInPeriod (
|
||||
@str_dt date = null
|
||||
, @end_dt date = null
|
||||
) returns table
|
||||
as return
|
||||
select Id, TrxDate, TrxDate_ISO8601, TrxDescription, TrxAmount, RunningBal
|
||||
from dbo.vw_BudgetRunningBalance
|
||||
where TrxDate between isnull(@str_dt, dateadd(day, 1, eomonth(getDate(), -1))) and isnull(@end_dt, eomonth(getdate()))
|
||||
go
|
||||
Reference in New Issue
Block a user