mirror of
https://github.com/acedanger/budget-database.git
synced 2025-12-06 07:00:14 -08:00
testing new function and updated proc
This commit is contained in:
@@ -1,11 +1,15 @@
|
|||||||
|
|
||||||
/*
|
select get_account_id('Bank of America', '4581')
|
||||||
|
|
||||||
CALL public.import_budget_from_csv();
|
CALL public.import_budget_from_csv();
|
||||||
CALL public.update_budget_from_import();
|
CALL public.update_budget_from_import('bank of america', '4581');
|
||||||
select 'Import' as TBL, count(1) as REC_CNT from public.budgetimport
|
select 'Import' as TBL, count(1) as REC_CNT from public.budgetimport
|
||||||
union all
|
union all
|
||||||
select 'Detail' as TBL, count(1) as REC_CNT from public.budgetdetails;
|
select 'Detail' as TBL, count(1) as REC_CNT from public.budgetdetails;
|
||||||
*/
|
|
||||||
|
select acct_id, count(1)
|
||||||
|
from public.budgetdetails b
|
||||||
|
group by acct_id
|
||||||
|
|
||||||
|
|
||||||
select
|
select
|
||||||
@@ -42,3 +46,5 @@ where
|
|||||||
current_date + interval '3 weeks'
|
current_date + interval '3 weeks'
|
||||||
)::date
|
)::date
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user