In this session, we are going to see how to fetch Oracle Cloud HCM Job Details using SQL.
SQL Text:
select pjfv.name
,pjfv.job_code
,to_char(pjfv.effective_start_date, 'mm/dd/yyyy','nls_date_language=english') effective_date
,per_extract_utility.get_decoded_lookup('ACTIVE_INACTIVE',pjfv.active_status) status
,setid.set_name job_set
,pjffv.job_family_name
,per_extract_utility.get_decoded_lookup('JOB_FUNCTION_CODE',pjfv.job_function_code) job_function
,per_extract_utility.get_decoded_lookup('HRX_US_FLSA_CATEGORY',jl.information1) overtime_status
,per_extract_utility.get_decoded_lookup('HRX_US_EEO1_JOB_CATEGORY',jl.information2) eeo1_category
,pgfv.name grade
,round(prvf.minimum,2) minimum
,round(prvf.maximum,2) maximum
,round(prvf.mid_value,2) mid_value
from per_jobs_f_vl pjfv
,fnd_setid_sets setid
,per_job_leg_f jl
,per_job_family_f_vl pjffv
,per_valid_grades_f pvgf
,per_grades_f_vl pgfv
,per_rate_values_f prvf
where 1 = 1
and pjfv.active_status = 'A'
and setid.set_id(+) = pjfv.set_id
and jl.job_id(+) = pjfv.job_id
and jl.legislation_code(+) = 'US'
and pjffv.job_family_id(+) = pjfv.job_family_id
and pvgf.job_id(+) = pjfv.job_id
and pgfv.grade_id(+) = pvgf.grade_id
and prvf.rate_object_id(+) = pgfv.grade_id
and prvf.rate_object_type(+) = 'GRADE'
and :p_eff_dt between pjfv.effective_start_date and pjfv.effective_end_date
and :p_eff_dt between jl.effective_start_date(+) and jl.effective_end_date(+)
and :p_eff_dt between pjffv.effective_start_date(+) and pjffv.effective_end_date(+)
and :p_eff_dt between pvgf.effective_start_date(+) and pvgf.effective_end_date(+)
and :p_eff_dt between pgfv.effective_start_date(+) and pgfv.effective_end_date(+)
and :p_eff_dt between prvf.effective_start_date(+) and prvf.effective_end_date(+)
Comments
Post a Comment