Since 2010, OraERP is a Oracle Forums, Community of Oracle Professionals including Fusion/Cloud Application Consultants, Enterprise Architects, ERP Cloud, HCM Cloud, CX Cloud and OCI Experts, ERP Experts, Oracle Apps Functional Consultants, Apps DBAs, DBAs, Cloud DBAs, Digital Architect, PaaS Experts, IaaS, OCI Architects, Technical Consultants, Fusion Middleware Experts, SQL, PL/SQL Developers and Project Managers. Welcome to OraERP.com Social Community, a friendly and active community of Oracle Technology Professionals who believe that technology can ‘make the world a better place’. By joining Oracle ERP Community you will have the ability to Post Topics, Receive our Newsletter, subscribe to threads and access many other special features. Registration is Quick and Simple. Get unlimited access to Oracle Tutorials, Articles, eBooks, Tools and Tips .
Thread Rating:
  • 15 Vote(s) - 2.8 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Employee Contact Detail
10-24-2014, 06:53 PM,
#1
Employee Contact Detail
select
papf.EMPLOYEE_NUMBER, papf.FULL_NAME Employee_name, PAPF.ORIGINAL_DATE_OF_HIRE
, pg.NAME Grade, pp.NAME Position, ppf.PAYROLL_NAME
,decode (pcr.CONTACT_TYPE, 'S','Spouse','JP_MT','Mother','JP_FT','Father', pcr.CONTACT_TYPE) CONTACT_TYPE
,  papr.FULL_NAME
, papr.DATE_OF_BIRTH
, pcr.DEPENDENT_FLAG, pcr.PERSONAL_FLAG Persoal_Relationship
, pcr.DATE_START, pcr.DATE_END
, pcr.CONT_ATTRIBUTE12  , CONT_ATTRIBUTE1 , CONT_ATTRIBUTE2  , CONT_ATTRIBUTE3   , CONT_ATTRIBUTE4   ,CONT_ATTRIBUTE5    , CONT_ATTRIBUTE6 , CONT_ATTRIBUTE7 , CONT_ATTRIBUTE8 , CONT_ATTRIBUTE9 ,
CONT_ATTRIBUTE10 , CONT_ATTRIBUTE11 , CONT_ATTRIBUTE13 
--, papr.FULL_NAME
from per_all_people_f papf, PER_CONTACT_RELATIONSHIPS pcr, per_all_people_f papr
, per_all_assignments_f paaf, per_grades pg, per_positions pp, pay_payrolls_f ppf
where
papf.PERSON_ID = pcr.PERSON_ID
and pcr.CONTACT_PERSON_ID = papr.PERSON_ID
and papf.PERSON_ID = paaf.PERSON_ID
and paaf.GRADE_ID = pg.GRADE_ID
and paaf.POSITION_ID = pp.POSITION_ID
and paaf.PAYROLL_ID = ppf.PAYROLL_ID
and sysdate between papf.EFFECTIVE_START_DATE and papf.EFFECTIVE_END_DATE
and sysdate between papr.EFFECTIVE_START_DATE and papr.EFFECTIVE_END_DATE
and sysdate between paaf.EFFECTIVE_START_DATE and paaf.EFFECTIVE_END_DATE
and ppf.PAYROLL_NAME = 'Payroll-UAE'
--and papf.EMPLOYEE_NUMBER = :Employee_number
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Employee number generation in r12 Colin Roger 2 6,180 01-14-2015, 06:38 PM
Last Post: Colin Roger
  How to get Employee Picture on Oracle Form fanni339 1 8,579 10-09-2014, 05:54 AM
Last Post: fanni339
  Termination of employee Sara Khan 1 6,268 12-28-2013, 11:54 PM
Last Post: Kashif Manzoor



Users browsing this thread: 3 Guest(s)