HS_SS_JOB_VWL(SQL View) |
Index Back |
---|---|
Health & Safety Job for ApprJOB in Fl Approval |
SELECT HDR.EMPLID , HDR.ACTION_DT_SS , HDR.EFFSEQ ,HDR.INCIDENT_NBR ,C.LANGUAGE_CD , C.DESCR FROM PS_HS_SS_INCDT_DAT HDR , PS_JOB JOB , PS_JOBCODE_LANG C WHERE JOB.EMPLID = HDR.EMPLID AND JOB.JOB_INDICATOR='P' AND JOB.SETID_JOBCODE = C.SETID AND JOB.JOBCODE = C.JOBCODE AND %EffdtCheck(JOBCODE_LANG, C, %CurrentDateIn) AND JOB.EFFDT=( SELECT MAX(EFFDT) FROM PS_JOB JOB2 WHERE JOB.EMPLID=JOB2.EMPLID AND JOB.EMPL_RCD=JOB2.EMPL_RCD AND JOB2.JOB_INDICATOR='P' AND JOB2.EFFDT<=%CurrentDateIn) AND JOB.EFFSEQ = ( SELECT MAX(EFFSEQ) FROM PS_JOB WHERE EMPLID = JOB.EMPLID AND EMPL_RCD = JOB.EMPL_RCD AND EFFDT = JOB.EFFDT AND JOB_INDICATOR='P') |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL | Employee ID |
2 | ACTION_DT_SS | Date(10) | DATE NOT NULL |
Transaction Date
Default Value: %date |
3 | EFFSEQ | Number(3,0) | SMALLINT NOT NULL |
Effective Sequence
Default Value: 0 |
4 | INCIDENT_NBR | Character(8) | VARCHAR2(8) NOT NULL |
Incident Number
Default Value: 0 |
5 | LANGUAGE_CD | Character(3) | VARCHAR2(3) NOT NULL | Language Code |
6 | JOB_DESCR | Character(30) | VARCHAR2(30) NOT NULL | Job Description |