You are on page 1of 1

select ic.relation_id, ep1.name entity_from, hr.name, ep2.name entity_to, hr2.

n
ame, cust.cust_account_id, cust.site_use_id --sup.vendor_id,
--sup vendor_site_id
from FUN_TRADE_RELATIONS ic, xle_entity_profiles ep1, xle_entity_profiles ep2, h
r_all_organization_units hr, hr_all_organization_units hr2,
fun_customer_maps cust
--fun_supplier_maps sup
where ic.transaction_le_id = ep1.legal_entity_id
and ic.TP_LE_ID = ep2.legal_entity_id
and ic.transaction_org_id = hr.organization_id
and ic.tp_org_id = hr2.organization_id
and ic.relation_id = cust.relation_id
and ep1.name = 'Sensata Technologies France SAS'
--and ic.relation_id = sup.relation_id
--and cust.relation_id = sup.relation_id
---Sensata Technologies Automotive Sensors (Shanghai) Co. Ltd.
select ic.relation_id, ep1.name entity_from, hr.name, ep2.name entity_to, hr2.n
ame, sup.vendor_id, sup.vendor_site_id
from FUN_TRADE_RELATIONS ic, xle_entity_profiles ep1, xle_entity_profiles ep2, h
r_all_organization_units hr, hr_all_organization_units hr2,
fun_supplier_maps sup
where ic.transaction_le_id = ep1.legal_entity_id
and ic.TP_LE_ID = ep2.legal_entity_id
and ic.transaction_org_id = hr.organization_id
and ic.tp_org_id = hr2.organization_id
and ic.relation_id = sup.relation_id
and ep1.name = 'Sensata Technologies Finance Company, LLC'

You might also like