Oracle EBs Apps Blog of Mahfuz, OPM and OBIEE Consultant

Sunday, 20 November 2016

OU wise Orgs Lists

select  u.SHORT_CODE, u.NAME, count(o.ORGANIZATION_CODE) --over (partition by u.SHORT_CODE)
orgs_per_ou
from org_organization_definitions o, hr_operating_units u
where o.OPERATING_UNIT=u.ORGANIZATION_ID and o.ORGANIZATION_CODE not in ('FMO')
group by  u.SHORT_CODE, u.NAME
order by u.SHORT_CODE

No comments:

Post a Comment

RCV API

  DECLARE   ln_user_id      NUMBER;   ln_po_header_id NUMBER := 3319024; --1713998;   ln_vendor_id    NUMBER;   lv_segment1     VARCHAR2(20)...