You are on page 1of 1

SELECT DISTINCT xx_hr_general.

decode_person_name
(a.attribute1)
accountant_name,
xx_hr_general.decode_person_name
(a.attribute2)
sales_person_name,
(SELECT party_name
FROM hz_parties
WHERE party_id = a.party_id) party_name, b.trx_number,
b.trx_date
FROM hz_cust_accounts a, ra_customer_trx_all b
WHERE a.cust_account_id = b.bill_to_customer_id
ORDER BY 1, 2 ASC;

You might also like