HDL – Sample file to update user name to email address
SELECT 'METADATA|User|PersonNumber|Username|SourceSystemId|SourceSystemOwner' Headerrow, 1 dataorder
FROM DUAL
UNION
SELECT 'METADATA|User'
||'|'||papf.person_number
||'|'||pea.email_address
||'|'||hikm.source_system_id
||'|'||hikm.source_system_owner Headerrow, 2 dataorder
FROM per_all_people_f papf
,per_email_addresses pea
,per_users pu
,hrc_integration_key_map hikm
WHERE papf.person_id = pea.person_id
and pu.person_id = pea.person_id
and pu.user_id = hikm.surrogate_id
and trunc(sysdate) between papf.effective_start_date and papf.effective_end_date
order by dataorder
Sample File:
METADATA|User|PersonNumber|Username|SourceSystemId|SourceSystemOwner
MERGE|User|11101|[email protected]|300000120863888|FUSION