Supplier of type "employee", the tax this place is "NO" list

select hou.name, vendor_name
from po_vendor_sites_all pvs, ap_suppliers ass, hr_operating_units hou
where pvs.auto_tax_calc_flag = 'N'
and pvs.vendor_id = ass.vendor_id
and ass.vendor_type_lookup_code = 'MEG_EMPLOYEE'
and pvs.org_id = hou.organization_id;

Guess you like

Origin www.cnblogs.com/lanminghuai/p/11239900.html