Tuesday, March 10, 2015

Oracle HRMS Scripts(Queries) - Employee Relation



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

2 comments:

  1. vender is useful for everyone it depends on how you will apply it

    ReplyDelete
  2. I really appreciate information shared above. It’s of great help. If someone want to learn Online (Virtual) instructor lead live training in ORACLE TIME AND LABOR, kindly contact us http://www.maxmunus.com/contact
    MaxMunus Offer World Class Virtual Instructor led training on ORACLE TIME AND LABOR We have industry expert trainer. We provide Training Material and Software Support. MaxMunus has successfully conducted 100000+ trainings in India, USA, UK, Australlia, Switzerland, Qatar, Saudi Arabia, Bangladesh, Bahrain and UAE etc.
    For Demo Contact us.
    Saurabh Srivastava
    MaxMunus
    E-mail: saurabh@maxmunus.com
    Skype id: saurabhmaxmunus
    Ph:+91 8553576305 / 080 - 41103383
    http://www.maxmunus.com/


    ReplyDelete