mirror of
https://github.com/acedanger/budget-database.git
synced 2025-12-05 22:50:13 -08:00
made data element names more consistent
This commit is contained in:
@@ -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;
|
||||
$$;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user