We can find the organization list with parent list in Oracle HRMS
select a.organization_id,B.ORGANIZATION_ID_PARENT,C.NAME paret_org_name ,c.type parent_org_type,a.location_id,d.location_code, a.date_from,a.name,a.type
from HR.HR_ALL_ORGANIZATION_UNITS a ,
PER_ORG_STRUCTURE_ELEMENTS b,
HR.HR_ALL_ORGANIZATION_UNITS c,
hr.HR_LOCATIONS_ALL d
where A.ORGANIZATION_ID=B.ORGANIZATION_ID_CHILD and C.ORGANIZATION_ID=B.ORGANIZATION_ID_PARENT and a.location_id=D.LOCATION_ID(+)
and a.internal_external_flag='INT' and a.date_to is null
select a.organization_id,B.ORGANIZATION_ID_PARENT,C.NAME paret_org_name ,c.type parent_org_type,a.location_id,d.location_code, a.date_from,a.name,a.type
from HR.HR_ALL_ORGANIZATION_UNITS a ,
PER_ORG_STRUCTURE_ELEMENTS b,
HR.HR_ALL_ORGANIZATION_UNITS c,
hr.HR_LOCATIONS_ALL d
where A.ORGANIZATION_ID=B.ORGANIZATION_ID_CHILD and C.ORGANIZATION_ID=B.ORGANIZATION_ID_PARENT and a.location_id=D.LOCATION_ID(+)
and a.internal_external_flag='INT' and a.date_to is null
Comments
Post a Comment