SELECT DISTINCT ieb.bank_name
FROM ap.ap_supplier_sites_all apss,
apps.iby_ext_bank_accounts ieba,
apps.iby_account_owners iao,
apps.iby_ext_banks_v ieb
WHERE apss.vendor_id = 123
AND iao.account_owner_party_id = ac.party_id
AND ieba.ext_bank_account_id = iao.ext_bank_account_id
AND ieba.bank_id = ieb.bank_party_id
FROM ap.ap_supplier_sites_all apss,
apps.iby_ext_bank_accounts ieba,
apps.iby_account_owners iao,
apps.iby_ext_banks_v ieb
WHERE apss.vendor_id = 123
AND iao.account_owner_party_id = ac.party_id
AND ieba.ext_bank_account_id = iao.ext_bank_account_id
AND ieba.bank_id = ieb.bank_party_id
No comments:
Post a Comment