🔹 Join the OracleApps88 Telegram Group - Stay up to date with the latest on Oracle EBS R12 and Oracle Cloud/Fusion Applications. 📌 Telegram Group : https://t.me/OracleApps88

💡 Facing issues copying code/scripts or viewing posts? We're here to help!
📬 Contact on Telegram : https://t.me/apps88
📱 Telegram/WhatsApp: +91 905 957 4321
📧 Email Support: OracleApp88@Yahoo.com

Monday, February 25, 2013

HRMS Relationship Query



SELECT rel.person_id person_id,
       rel.contact_person_id contact_person_id,
       per.full_name,
       per.date_of_birth,
       hr_general.decode_lookup ('SEX', per.sex) gender,
       (SELECT look_up.meaning
          FROM hr_lookups look_up
         WHERE look_up.lookup_type = 'CONTACT'
           AND look_up.enabled_flag = 'Y'
           AND look_up.lookup_code = rel.contact_type) relation
  FROM per_contact_relationships rel,
       per_people_f per
 WHERE rel.contact_person_id = per.person_id
   AND per.business_group_id = hr_general.get_business_group_id

No comments:

Post a Comment

If you are facing any issues while copying the Code/Script or any issues with Posts, Please send a mail to OracleApp88@Yahoo.com or message me at @apps88 or +91 905 957 4321 in telegram.
Best Blogger TipsGet Flower Effect