In this session, we are going to see how to fetch Oracle Cloud HCM Legal Employer associated with Department using SQL
SQL Text:
select dep.name department
,substr(dep.name,1,9) dept_code
,substr(dep.name,13) dept_name
,leg.name legal_employer
from hr_organization_v dep
,hr_organization_information_f inf
,hr_organization_v leg
where 1 = 1
and inf.organization_id = dep.organization_id
and org_information_context = 'XX_LE_ASSOCIATED_DEPT' -- Client Specific
and leg.legal_entity_id = inf.org_information_number1
and sysdate between dep.effective_start_date and dep.effective_end_date
and sysdate between leg.effective_start_date and leg.effective_end_date
Comments
Post a Comment