HR_RWHIS_DEL_VW(SQL View) |
Index Back |
---|
SELECT DISTINCT A.emplid ,A.empl_rcd ,R.start_date ,A.EFFDT ,A.EFFSEQ ,%CurrentDateTimeIn FROM PS_JOB A , PS_HR_RWORK_TBL R WHERE A.EMPLID=R.EMPLID AND A.EMPL_RCD=R.EMPL_RCD AND A.EFFDT = ( SELECT MAX(A_ED.EFFDT) FROM PS_JOB A_ED WHERE A.EMPLID = A_ED.EMPLID AND A.EMPL_RCD = A_ED.EMPL_RCD AND A_ED.EFFDT <= %CurrentDateIn) AND A.EFFSEQ = ( SELECT MAX(A_ES.EFFSEQ) FROM PS_JOB A_ES WHERE A.EMPLID = A_ES.EMPLID AND A.EMPL_RCD = A_ES.EMPL_RCD AND A.EFFDT = A_ES.EFFDT) AND A.HR_STATUS<>'A' UNION SELECT DISTINCT A.emplid ,A.empl_rcd ,R.start_date ,A.EFFDT ,A.EFFSEQ ,%CurrentDateTimeIn FROM PS_JOB A , PS_HR_RWORKDEL_TBL R WHERE A.EMPLID=R.EMPLID AND A.EMPL_RCD=R.EMPL_RCD AND A.EFFDT = ( SELECT MAX(A_ED.EFFDT) FROM PS_JOB A_ED WHERE A.EMPLID = A_ED.EMPLID AND A.EMPL_RCD = A_ED.EMPL_RCD AND A_ED.EFFDT <= %CurrentDateIn) AND A.EFFSEQ = ( SELECT MAX(A_ES.EFFSEQ) FROM PS_JOB A_ES WHERE A.EMPLID = A_ES.EMPLID AND A.EMPL_RCD = A_ES.EMPL_RCD AND A.EFFDT = A_ES.EFFDT) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL |
Employee ID
Default Value: PER_ORG_ASGN.EMPLID Prompt Table: PERS_SRCH_GBL |
2 | EMPL_RCD | Number(3,0) | SMALLINT NOT NULL | Empl Record |
3 | START_DATE | Date(10) | DATE NOT NULL | Start Date for Gen Standing PO |
4 | EFFDT | Date(10) | DATE |
Effective Date
Default Value: %date |
5 | EFFSEQ | Number(3,0) | SMALLINT NOT NULL | Effective Sequence |
6 | LASTUPDDTTM | DateTime(26) | TIMESTAMP | Specifies the date and time of the last update to an entry. This field is maintained by PeopleSoft and is used in a variety of contexts. |