EE_ALRGY_DTL_VW

(SQL View)
Index Back

EE - Allergy Details Table

This is the Employee related Allergy Table. It is used to maintain allergy codes by REG_REGION.

SELECT A.EMPLID , A.REG_REGION , A.ALLERGY_CODE , A.START_DATE , A.END_DATE , A.DESCR100 FROM PS_EE_ALLERGY_DTL A WHERE A.START_DATE = ( SELECT MAX(A1.START_DATE) FROM PS_EE_ALLERGY_DTL A1 WHERE A.EMPLID = A1.EMPLID AND A.REG_REGION = A1.REG_REGION AND A.ALLERGY_CODE = A1.ALLERGY_CODE AND A1.START_DATE <= %CurrentDateIn)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID

Prompt Table: PERSON

2 REG_REGION Character(5) VARCHAR2(5) NOT NULL Regulatory Region

Prompt Table: REG_REGION_TBL

3 ALLERGY_CODE Character(4) VARCHAR2(4) NOT NULL Allergy code

Prompt Table: HS_ALLERGY_TBL

4 START_DATE Date(10) DATE NOT NULL Start Date for Gen Standing PO
5 END_DATE Date(10) DATE End Date
6 DESCR100 Character(100) VARCHAR2(100) NOT NULL Length 100 Description