From f07d5a4c7cfe61290ecb574ad920115df0f42609 Mon Sep 17 00:00:00 2001 From: Peter Wood Date: Sun, 5 Mar 2023 07:54:04 -0500 Subject: [PATCH] testing new function and updated proc --- postgres/temp.sql | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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 ; + +