getting duplicate rows while linking witht the customer tables with order management
HI,
can any body please help me in fixing these query
select ooha.order_number
,hp.party_name
,hlc.address1
,hlc.address2
,hlc.address3
,hlc.city
,hcsu.site_use_code
,hp.email_address
,ooha.header_id
from hz_parties hp
,hz_party_sites hps
,hz_locations hlc
,hz_cust_accounts hca
,hz_cust_acct_sites_all hcac
,hz_cust_site_uses_all hcsu
,oe_order_headers_all ooha
where 1=1
and hp.party_id=hps.party_id
and hps.location_id=hlc.location_id
and hca.party_id=hps.party_id
and hca.cust_account_id=hcac.cust_account_id
and hps.party_site_id=hcac.party_site_id
1