HR_PSS_JOB_VW

(SQL View)
Index Back

Person Search - Simple

Person Search - Simple: View joining Person_Name, Job and Per_Org_Asgn. Used to find persons with a Job row.

SELECT A.EMPLID , C.PER_ORG , C.POI_TYPE , B.HR_STATUS , B.BUSINESS_UNIT , A.LAST_NAME_SRCH , A.SECOND_LAST_SRCH , A.FIRST_NAME_SRCH , A.NAME_AC , A.NAME_DISPLAY , A.NAME , A.LAST_NAME , A.FIRST_NAME , A.MIDDLE_NAME ,A.NAME_DISPLAY_SRCH FROM PS_PERSON_NAME A , PS_JOB B , PS_PER_ORG_ASGN C WHERE A.EMPLID = B.EMPLID AND B.EMPLID = C.EMPLID AND B.EMPL_RCD = C.EMPL_RCD AND B.EFFDT = ( SELECT MAX(J1.EFFDT) FROM PS_JOB J1 WHERE J1.EMPLID = B.EMPLID AND J1.EMPL_RCD = B.EMPL_RCD AND J1.EFFDT <= %CurrentDateIn) AND B.EFFSEQ = ( SELECT MAX(J2.EFFSEQ) FROM PS_JOB J2 WHERE J2.EMPLID = B.EMPLID AND J2.EMPL_RCD = B.EMPL_RCD AND J2.EFFDT = B.EFFDT)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
2 PER_ORG Character(3) VARCHAR2(3) NOT NULL Defines the Organizational Relationship(s) that a Person has to the Organization. These are Employee, Contingent Worker, and Persons of Interest.
CWR=Contingent Worker
EMP=Employee
POI=Person of Interest
3 POI_TYPE Character(5) VARCHAR2(5) NOT NULL Defines the Transactional usage of POIs in HRMS.
4 HR_STATUS Character(1) VARCHAR2(1) NOT NULL HR Status
A=Active
I=Inactive
5 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
6 LAST_NAME_SRCH Character(30) VARCHAR2(30) NOT NULL Last Name
7 SECOND_LAST_SRCH Character(30) VARCHAR2(30) NOT NULL Second Last Name
8 FIRST_NAME_SRCH Character(30) VARCHAR2(30) NOT NULL First Name
9 NAME_AC Character(50) VARCHAR2(50) NOT NULL Alternate Character Name
10 NAME_DISPLAY Character(50) VARCHAR2(50) NOT NULL Display Name - name formatted for Display based on the Country
11 NAME Character(50) VARCHAR2(50) NOT NULL Name
12 LAST_NAME Character(30) VARCHAR2(30) NOT NULL Last Name
13 FIRST_NAME Character(30) VARCHAR2(30) NOT NULL First Name
14 MIDDLE_NAME Character(30) VARCHAR2(30) NOT NULL MIDDLE_NAME
15 NAME_DISPLAY_SRCH Character(50) VARCHAR2(50) NOT NULL Uppercase version of Name to improve performance on searches.