This document appears to be an SQL query that is selecting and summarizing supplier information from various database tables. The query is selecting dozens of fields related to suppliers, such as supplier numbers, names, addresses, payment terms, bank account information, and other attributes. It is filtering for a specific organization ID and supplier number. The results are being ordered by the supplier number and name fields.
Download as TXT, PDF, TXT or read online on Scribd
100%(1)100% found this document useful (1 vote)
873 views
Supplier Query
This document appears to be an SQL query that is selecting and summarizing supplier information from various database tables. The query is selecting dozens of fields related to suppliers, such as supplier numbers, names, addresses, payment terms, bank account information, and other attributes. It is filtering for a specific organization ID and supplier number. The results are being ordered by the supplier number and name fields.
AND accts.bank_id = bankProfile.party_id(+) AND accts.branch_id = branch.branch_party_id(+) AND payee.ext_payee_id = ieppm.ext_pmt_party_id(+) ) ab ,apps.fnd_languages lang, (select * from GECSS.gecm_dff_ext where primary_table='AP_SUPPLIER_SITES_ALL')EDFF WHERE pvs.org_id IN(9719) and p.vendor_id = pvs.vendor_id and pvs.VENDOR_SITE_ID = c.VENDOR_SITE_ID(+) -- and and pvs.terms_id = apt.term_id (+) and pvs.accts_pay_code_combination_id = gcck1.code_combination_id (+) and pvs.prepay_code_combination_id = gcck2.code_combination_id (+) and pvs.ship_to_location_id = hl1.location_id (+) and pvs.bill_to_location_id = hl2.location_id (+) and pvs.vendor_site_id = ab.supplier_site_id (+) and pvs.attribute11=lang.language_code (+) and pvs.VENDOR_SITE_ID=EDFF.PRIMARY_KEY(+) and p.segment1 ='932806' --and pvs.country like '%IT%' --AND P.SEGMENT1 = '116333' --and p.end_date_active is null --and (pvs.inactive_date is null or pvs.inactive_date>sysdate) --and p.segment1='J26836' --and p.segment1||PVS.ATTRIBUTE14 in('F92541102', --and pvs.attribute7 like '%-V-S-C' --and pvs.INVOICE_AMOUNT_LIMIT is not null ORDER BY 2, 4