mirror of
https://github.com/acedanger/budget-database.git
synced 2025-12-05 22:50:13 -08:00
initial commit
This commit is contained in:
9
views/vw_BudgetRunningBalance.sql
Normal file
9
views/vw_BudgetRunningBalance.sql
Normal 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
|
||||
Reference in New Issue
Block a user