Query to fetch Employee Phone Details
select papf.person_number,
ppnf.full_name
employee_full_name,
pp.phone_number,
per_extract_utility.get_decoded_lookup('PHONE_TYPE', pp.phone_type)
email_type
from per_all_people_f papf,
per_phones pp,
per_person_names_f ppnf
where 1 = 1
and trunc(sysdate) between papf.effective_start_date and
papf.effective_end_date
and papf.person_id = ppnf.person_id
and trunc(sysdate) between ppnf.effective_start_date and
ppnf.effective_end_date
and ppnf.name_type = 'GLOBAL'
and papf.person_id = pp.person_id
and trunc(sysdate) between trunc(pp.date_from) and nvl(trunc(pp.date_to), trunc(sysdate))
No comments:
Post a Comment