|
|
|
|
|
Re: How to create account statement without using temp. table [message #120131 is a reply to message #117906] |
Tue, 17 May 2005 19:47 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
danosw
Messages: 20 Registered: May 2005 Location: California
|
Junior Member |
|
|
Basicly I'd use a union (avoid the DBA) and page break on account number change.
(I assume your doing this in Oracle Reports)
select tdate, amount, description, account from account_transaction where tdate between :p_begin_date and :p_end_date
union all
select hdate, amount, description, account from account_history
where hdate between :p_begin_date and :p_end_date
order by 4,1
Add summary columns.
Dano
|
|
|
|