HRMIL_PHOTO_VW(SQL View) |
Index Back |
---|---|
Military Photo ViewMilitary Rank Photo View used in Fluid Approvals |
SELECT A.EMPLID , A.EMPL_RCD , A.EFFDT , A.EFFSEQ , PHOTO.EMPLOYEE_PHOTO FROM PS_MIL_RANK_DAT A , PS_USER_PH_LIST_FL PHOTO WHERE A.EMPLID = PHOTO.EMPLID AND A.EFFDT=( SELECT MAX(B.EFFDT) FROM PS_MIL_RANK_DAT B WHERE A.EMPLID=B.EMPLID AND A.EMPL_RCD=B.EMPL_RCD AND A.EFFDT <= %CurrentDateIn ) AND A.EFFSEQ = ( SELECT MAX(C.EFFSEQ) FROM PS_MIL_RANK_DAT C WHERE C.EMPLID = A.EMPLID AND A.EMPL_RCD=C.EMPL_RCD AND C.EFFDT = A.EFFDT ) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL |
Employee ID
Prompt Table: HRMH_EMPLID_VW |
2 | EMPL_RCD | Number(3,0) | SMALLINT NOT NULL |
Empl Record
Default Value: 0 |
3 | EFFDT | Date(10) | DATE |
Effective Date
Default Value: %date |
4 | EFFSEQ | Number(3,0) | SMALLINT NOT NULL | Effective Sequence |
5 | EMPLOYEE_PHOTO | Image / Attachment(256) | VARCHAR2(256) | Employee Photograph |