Need help in tuning the query
Hi,
I wan to extract the customer addresses from EBS 11i on database 11.2.3, could you help in tuning
SELECT
ca.cust_account_id
,hl.location_id
,hl.address1
,hl.address2
,hl.city
,hl.postal_code
,hl.country
,pa.status
,cu.primary_flag
,(select max(x.ip_number) from oe_order_headers_all oh,zzcc_orders_all x where oh.ordered_date=x.ordered_date and oh.sold_to_org_id = ca.cust_account_id
and trunc(oh.creation_date)=trunc(hl.creation_date)) ip_number
,hl.creation_date
,hl.last_update_date
FROM ar.hz_cust_site_uses_all cu