select hou.organization_id,hou.name,
ood.organization_id,ood.organization_code,
msi.secondary_inventory_name,
msi.description
from HR_ORGANIZATION_INFORMATION hoi,
hr_organization_units hou,
ORG_ORGANIZATION_DEFINITIONS ood,
mtl_secondary_inventories msi
where hoi.org_information1='OPERATING_UNIT' and
hoi.organization_id=hou.organization_id and
ood.operating_unit=hoi.organization_id and
ood.organization_id=msi.organization_id
运行以上SQL,你就啥都明白了,如果还不明白,建议你改行。 |