Nav: Global HRMS Manager--> People-->Enter and Maintain--> Query Employee--> Click on Others Button-->Select Contact from List
SELECT papf.person_id
,papf.employee_number
,papf.full_name employee_name
,papf_cont.full_name contact_name
,TO_CHAR(papf_cont.date_of_birth, 'DD-MON-RRRR') contact_date_of_birth
,hl.meaning contact_type
FROM per_contact_relationships pcr
,per_all_people_f papf
,hr_lookups hl
,per_all_people_f papf_cont
WHERE 1 = 1
AND papf.person_id = pcr.person_id
AND pcr.contact_person_id = papf_cont.person_id
AND NVL (TRUNC (papf.effective_end_date), SYSDATE) >= TRUNC (SYSDATE)
AND NVL (TRUNC (papf_cont.effective_end_date), SYSDATE) >= TRUNC (SYSDATE)
AND hl.lookup_type(+) = 'CONTACT'
AND hl.lookup_code(+) = pcr.contact_type
AND papf.person_id = :p_person_id
Subscribe to:
Post Comments (Atom)
Query to get Parent and Child Accounts in Oracle APPS R12
SELECT ffv1.flex_value parent_account ,ffvt1.description parent_account_desc ,ffv2.flex_value child_account ,ffvt2.description...
-
The XDOLoader utility is a Java-based command line program to load template (RTF, PDF, and XSL-FO), XML, and XSD files to the XML Publis...
-
Serial_number_control_code column contains values as 1,2,5 &6 in mtl_system_items_b table. Inorder to find meaning for this values r...
-
LOT_CONTROL_CODE column contains values as 1 & 2 in mtl_system_items_b table. Inorder to find meaning for this values run below que...
No comments:
Post a Comment