ORIG_HIRE_VW2(SQL View) |
Index Back |
---|---|
Minimum Orig_hire_DtSelects the minimum ORIG_HIRE_DT from PER_ORG_INST for the EMPLID and the PER_ORG. |
SELECT A.EMPLID ,A.PER_ORG ,MIN(A.ORIG_HIRE_DT) FROM PS_PER_ORG_INST A , PS_PER_ORG_ASGN B , PS_JOB C WHERE A.EMPLID = B.EMPLID AND A.ORG_INSTANCE_ERN = B.ORG_INSTANCE_ERN AND B.EMPLID = C.EMPLID AND B.EMPL_RCD = C.EMPL_RCD AND C.EFFDT = ( SELECT MAX(EFFDT) FROM PS_JOB D WHERE C.EMPLID = D.EMPLID AND C.EMPL_RCD = D.EMPL_RCD AND D.EFFDT <= %CurrentDateIn) AND C.EFFSEQ = ( SELECT MAX(EFFSEQ) FROM PS_JOB E WHERE C.EMPLID = E.EMPLID AND C.EMPL_RCD = E.EMPL_RCD AND C.EFFDT = E.EFFDT) AND C.EMPL_STATUS IN('A','L','P','S','W') GROUP BY A.EMPLID , A.PER_ORG |
# | 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 | ORIG_HIRE_DT | Date(10) | DATE | Original Start Date |