NOI_VW_CAN(SQL View) |
Index Back |
---|---|
Injury/Ill - Nature of InjuryView used as prompt for INJ_ILL_BPI_CAN (Nature of Injury/Body Part Link) |
SELECT A.INCIDENT_NBR, A.EMPLID, A.EMPL_RCD, A.NON_EMPLOYEE_ID, A.INJURY_NATURE_CD, B.DESCR100 FROM PS_INJURY_ILL_NOI A, PS_INJURY_NATR_TBL B, PS_INCIDENT_DATA I WHERE A.INJURY_NATURE_CD = B.INJURY_NATURE_CD AND A.INCIDENT_NBR = I.INCIDENT_NBR AND I.REG_REGION = B.SETID AND B.EFFDT = (SELECT MAX(EFFDT) FROM PS_INJURY_NATR_TBL B1 WHERE B1.INJURY_NATURE_CD = B.INJURY_NATURE_CD AND B1.SETID = B.SETID) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | INCIDENT_NBR | Character(8) | VARCHAR2(8) NOT NULL | Incident Number |
2 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL | Employee ID |
3 | EMPL_RCD | Number(3,0) | SMALLINT NOT NULL | Empl Record |
4 | NON_EMPLOYEE_ID | Character(11) | VARCHAR2(11) NOT NULL | Non-Employee ID |
5 | INJURY_NATURE_CD | Character(5) | VARCHAR2(5) NOT NULL | Nature of Injury |
6 | DESCR100 | Character(100) | VARCHAR2(100) NOT NULL | Length 100 Description |