HR_WRK_RESTR_VW(SQL View) |
Index Back |
---|---|
Employee Work Restriction SmryView lists employees who have work restriction. This data is used in the Health and Safety module. |
SELECT B.EMPLID ,B.WORK_RESTRICT_CD ,A.NAME ,B.EMPL_RCD ,B.NON_EMPLOYEE_ID ,C.DESCR ,B.INCIDENT_NBR ,B.RESTRICT_FROM_DT ,B.RESTRICT_TO_DT FROM PS_WORK_RESTRICTN B ,PS_PERSON_NAME A ,PS_WORK_RESTRN_TBL C WHERE B.EMPLID = A.EMPLID AND B.WORK_RESTRICT_CD = C.WORK_RESTRICT_CD AND C.EFF_STATUS = 'A' AND C.EFFDT <= %CurrentDateIn GROUP BY A.NAME,B.EMPLID,B.EMPL_RCD,B.NON_EMPLOYEE_ID,B.WORK_RESTRICT_CD,C.DESCR,B.INCIDENT_NBR,B.RESTRICT_FROM_DT,B.RESTRICT_TO_DT |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL | Employee ID |
2 | WORK_RESTRICT_CD | Character(3) | VARCHAR2(3) NOT NULL | Work Restriction Code |
3 | NAME | Character(50) | VARCHAR2(50) NOT NULL | Name |
4 | EMPL_RCD | Number(3,0) | SMALLINT NOT NULL | Empl Record |
5 | NON_EMPLOYEE_ID | Character(11) | VARCHAR2(11) NOT NULL | Non-Employee ID |
6 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
7 | INCIDENT_NBR | Character(8) | VARCHAR2(8) NOT NULL | Incident Number |
8 | RESTRICT_FROM_DT | Date(10) | DATE | Restriction From Date |
9 | RESTRICT_TO_DT | Date(10) | DATE | Restriction To Date |