You are on page 1of 1

SELECT distinct ac.vendor_name, nvl(ac.address_line1,ac.address_line2) address_line1, decode(ac.city,null,'',ac.city ',') ac.state ' ' ac.zip city_state_zip, pv.segment1 vendor_no, abb.

bank_name payee_bank, ac.currency_code cur_code, ac.check_date pmt_date, ac.check_number pmt_number, ac.amount pmt_amount, ac.check_id FROM ap_checks_all ac, ap_bank_accounts_all aba, ap_bank_branches abb, po_vendors pv WHERE ac.PAYMENT_METHOD_LOOKUP_CODE in ('EFT','WIRE') and ac.status_lookup_code in ('NEGOTIABLE','CLEARED BUT UNACCOUNTED','RECONCILED UNACCOUNTED') and ac.vendor_id=pv.vendor_id and ac.external_bank_account_id = aba.bank_account_id and aba.bank_branch_id = abb.bank_branch_id order by ac.check_date; ELECT BANK_ID ,party_name ,bank_account_id ,VENDOR_NAME ,org_id ,BANK_ACCOUNT_NAME, hrl.ADDRESS_LINE_1' 'hrl.ADDRESS_LINE_2 ' 'hrl.ADDRESS_LINE_3 ', 'hrl.LOC_INFORMATION14' - 'hrl.POSTAL_CODE' Ph:'hrl.TEL EPHONE_NUMBER_1 Head_office

You might also like