made data element names more consistent

This commit is contained in:
Peter Wood
2023-03-09 20:24:58 -05:00
parent a63a2cf8f4
commit a494709cc5
4 changed files with 33 additions and 37 deletions

View File

@@ -26,16 +26,13 @@ raise notice 'INPUT: % p_start = %; % p_end = %;', E'\n', p_start, E'\n', p_end;
return query
select
bl.bank_name, bl.account_type, bl.account_number, bl.friendly_name as account_friendly_name
, bl.trx_date as transaction_date, bl.trx_description as transaction_description, bl.trx_amount as transaction_amount
, bl.day_of_week as transaction_day_of_week, bl.running_bal
bl.account_bank_name, bl.account_type, bl.account_number, bl.account_friendly_name
, bl.transaction_date, bl.transaction_description, bl.transaction_amount
, bl.transaction_day_of_week, bl.running_bal
from public.runbal bl
where
lower(bl.friendly_name) = trim(lower(p_account_name))
and bl.trx_date between p_start and p_end;
lower(bl.account_friendly_name) = trim(lower(p_account_name))
and bl.transaction_date between p_start and p_end;
end;
$$;