SELECT ppca.creation_date,
ppca.control_group_id,
hou.name operating_unit,
ppv.position_id,
ppv.name position_name,
pcga.control_group_name,
ppca.control_function_id,
pcf.control_function_name,
start_date,
end_date
FROM po_position_controls_all ppca
,hr_operating_units hou
,per_positions_v ppv
,po_control_groups_all pcga
,po_control_functions pcf
WHERE hou.organization_id = ppca.org_id
AND ppv.position_id = ppca.position_id
AND pcga.control_group_id = ppca.control_group_id
AND ppca.control_function_id = pcf.control_function_id
-- AND ppca.org_id = fnd_profile.value('PER_BUSINESS_GROUP_ID')
AND TRUNC (ppca.creation_date) BETWEEN TO_DATE ('01-JAN-2021',
'DD-MON-YYYY')
AND TO_DATE ('28-OCT-2021',
'DD-MON-YYYY')
ORDER BY ppca.org_id ASC
,ppca.position_id ASC
,ppca.creation_date
DESC
No comments:
Post a Comment