DBA Data[Home] [Help]

VIEW: APPS.HRI_CL_POSITION_HX_V

Source

View Text - Preformatted

SELECT pos.position_id ID , pos.name VALUE , pos.date_effective start_date , NVL(pos.date_end, hr_general.end_of_time) end_date , business_group_id business_group_id , pos.organization_id organization_id , pos.job_id job_id , pos.position_definition_id position_definition_id FROM per_positions pos WHERE TRUNC(sysdate) <= nvl(pos.date_end, hr_general.end_of_time) AND pos.business_group_id = NVL(hr_bis.get_sec_profile_bg_id, pos.business_group_id) UNION ALL SELECT -1 ID , '' VALUE , hr_general.start_of_time start_date , hr_general.end_of_time end_date , -1 business_group_id , -1 organization_id , -1 job_id , -1 position_definition_id FROM dual WITH READ ONLY
View Text - HTML Formatted

SELECT POS.POSITION_ID ID
, POS.NAME VALUE
, POS.DATE_EFFECTIVE START_DATE
, NVL(POS.DATE_END
, HR_GENERAL.END_OF_TIME) END_DATE
, BUSINESS_GROUP_ID BUSINESS_GROUP_ID
, POS.ORGANIZATION_ID ORGANIZATION_ID
, POS.JOB_ID JOB_ID
, POS.POSITION_DEFINITION_ID POSITION_DEFINITION_ID
FROM PER_POSITIONS POS
WHERE TRUNC(SYSDATE) <= NVL(POS.DATE_END
, HR_GENERAL.END_OF_TIME)
AND POS.BUSINESS_GROUP_ID = NVL(HR_BIS.GET_SEC_PROFILE_BG_ID
, POS.BUSINESS_GROUP_ID) UNION ALL SELECT -1 ID
, '' VALUE
, HR_GENERAL.START_OF_TIME START_DATE
, HR_GENERAL.END_OF_TIME END_DATE
, -1 BUSINESS_GROUP_ID
, -1 ORGANIZATION_ID
, -1 JOB_ID
, -1 POSITION_DEFINITION_ID
FROM DUAL WITH READ ONLY