diff --git a/postgres/temp.sql b/postgres/temp.sql index 4f61424..512ae6a 100644 --- a/postgres/temp.sql +++ b/postgres/temp.sql @@ -1,11 +1,15 @@ -/* +select get_account_id('Bank of America', '4581') + 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 union all 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 @@ -42,3 +46,5 @@ where current_date + interval '3 weeks' )::date ; + +