HS_IMMUN_ADM_VW(SQL View) |
Index Back |
---|---|
Primary Job View - HRThe goal of this view is to find the most current active primary job row of an employee that is a Health and Safety administrator so we can get their REG_REGION. |
SELECT HS.EMPLID , HS.ACTION_DT_SS , HS.EFFSEQ , HS.HS_EMPLID , HS.REG_REGION , HS.IMMUN_CODE , HS.START_DATE , R1.ROLENAME , R1.ROLEUSER , R1.OPRID , R1.EMAILID FROM PS_HS_SS_IMMUN_DAT HS , PS_HS_ROLEUSER_VW R1 , PS_OPR_DEF_TBL_HR OPR1 , PSOPRDEFN OPR2 WHERE OPR1.REG_REGION = HS.REG_REGION AND OPR2.OPRCLASS = OPR1.OPRCLASS AND R1.OPRID = OPR2.OPRID |
# | 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 | Termination Date |
3 | EFFSEQ | Number(3,0) | SMALLINT NOT NULL | Effective Sequence |
4 | HS_EMPLID | Character(11) | VARCHAR2(11) NOT NULL | Employee ID for Health and Safety |
5 | REG_REGION | Character(5) | VARCHAR2(5) NOT NULL | Regulatory Region |
6 | IMMUN_CODE | Character(4) | VARCHAR2(4) NOT NULL | Immunization Code |
7 | START_DATE | Date(10) | DATE | Start Date for Gen Standing PO |
8 | ROLENAME | Character(30) | VARCHAR2(30) NOT NULL | The name of a Role in the Role Definition Table (see PSROLEDEFN). |
9 | ROLEUSER | Character(30) | VARCHAR2(30) NOT NULL | Role User |
10 | OPRID | Character(30) | VARCHAR2(30) NOT NULL | A user's ID (see PSOPRDEFN). |
11 | EMAILID | Character(70) | VARCHAR2(70) NOT NULL | A user's E-mail address |