SELECT hp.party_name sales_representative
FROM ra_customer_trx_all rcta
,jtf_rs_salesreps jrs
,hz_parties hp
WHERE rcta.primary_resource_salesrep_id=jrs.resource_salesrep_id
AND jrs.resource_id=hp.party_id
SELECT ffv1.flex_value parent_account ,ffvt1.description parent_account_desc ,ffv2.flex_value child_account ,ffvt2.description...
No comments:
Post a Comment