HRMIL_NAME_VW

(SQL View)
Index Back

Military Employee Name View

Military Employee Name View used in Fluid Approvals

SELECT A.EMPLID , A.empl_rcd ,A.EFFDT ,A.EFFSEQ , N.NAME_DISPLAY FROM PS_MIL_RANK_DAT A , PS_NAMES N WHERE A.EMPLID = N.EMPLID AND N.EFFDT = ( SELECT MAX (NM1.EFFDT) FROM PS_NAMES NM1 WHERE N.EMPLID = NM1.EMPLID AND NM1.NAME_TYPE = 'PRI' AND NM1.EFFDT <= %CurrentDateIn) 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 NAME_DISPLAY Character(50) VARCHAR2(50) NOT NULL Display Name - name formatted for Display based on the Country