ACTIVE_WRKR_VW(SQL View) |
Index Back |
---|---|
Active Worker Vw (no EMPL_RCDAll Active Workers (EMPL_STATUS A, L, P, W). Does not show the EMPL_RCD in the list box. |
SELECT A.EMPLID , B.NAME , A.HR_STATUS , B.LAST_NAME_SRCH , A.BUSINESS_UNIT , A.DEPTID , A.PER_ORG FROM PS_JOB A , PS_PERSON_NAME B WHERE A.EMPLID = B.EMPLID AND A.PER_ORG IN ('EMP','CWR') AND A.HR_STATUS ='A' AND A.EFFDT = ( SELECT MAX(C.EFFDT) FROM PS_JOB C WHERE A.EMPLID = C.EMPLID AND A.EMPL_RCD = C.EMPL_RCD AND C.EFFDT <= %CurrentDateIn) AND A.EFFSEQ = ( SELECT MAX(D.EFFSEQ) FROM PS_JOB D WHERE D.EMPLID = A.EMPLID AND D.EMPL_RCD = A.EMPL_RCD AND D.EFFDT = A.EFFDT) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL |
Employee ID
Prompt Table: PERSON_NAME |
2 | NAME | Character(50) | VARCHAR2(50) NOT NULL | Name |
3 | EFF_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Effective Status
A=Active I=Inactive |
4 | LAST_NAME_SRCH | Character(30) | VARCHAR2(30) NOT NULL | Last Name |
5 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
6 | DEPTID | Character(10) | VARCHAR2(10) NOT NULL | Department |
7 | 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 |