INJ_ZZ_BP_CN

(SQL View)
Index Back

Body Parts View - Canada

This is a view used in tracking incidents in the Health and Safety module.

SELECT A.INCIDENT_NBR, A.EMPLID, A.EMPL_RCD, A.NON_EMPLOYEE_ID, A.BODY_PART_CD, B.DESCR100 FROM PS_INJ_ILL_BP_VW A, PS_BODY_PART_TBL B, PS_INCIDENT_DATA I WHERE A.BODY_PART_CD = B.BODY_PART_CD AND A.INCIDENT_NBR = I.INCIDENT_NBR AND I.REG_REGION = B.SETID AND B.EFFDT = (SELECT MAX(EFFDT) FROM PS_BODY_PART_TBL B1 WHERE B1.BODY_PART_CD = B.BODY_PART_CD AND B1.SETID = B.SETID)

  • Related Language Record: INJ_ZZ_BP_CNLNG
  • # 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 Rcd Nbr
    4 NON_EMPLOYEE_ID Character(11) VARCHAR2(11) NOT NULL Non-Employee ID
    5 BODY_PART_CD Character(5) VARCHAR2(5) NOT NULL Body Part Code
    6 DESCR100 Character(100) VARCHAR2(100) NOT NULL Length 100 Description