Re: how to obtain this query result
Posted by:
Bob Field
Date: January 23, 2007 09:58AM
This should get you started in the right direction.
(SELECT Date, dn_id AS ID, Type, amount AS Debit, 0.00 AS Credit
FROM debit_note_table)
UNION
(SELECT Date, cn_id AS ID, Type, 0.00 AS Debit, amount AS Credit
FROM credit_not_table);
Possibly you don't need separate tables at all, but you can UNION them and get the result you need.
Subject
Written By
Posted
Re: how to obtain this query result
January 23, 2007 09:58AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.