SCC_HOLD_VW_FL

(SQL View)
Index Back

Platform specific view


SELECT A.EMPLID , A.SRVC_IND_DTTM , A.SRVC_IND_ACTIVE_DT , A.INSTITUTION , B.DESCR , A.SRVC_IND_CD , C.DESCR , A.SRVC_IND_REASON , A.SRVC_IND_ACT_TERM , D.DESCR , A.DEPTID , E.DESCR , A.CONTACT_ID , A.CONTACT , F.EMAIL_ADDR , A.AMOUNT , A.CURRENCY_CD , X.DESCRLONG ,A.SCC_SI_END_DT ,A.SCC_SI_END_TERM ,%Substring(G.DESCR ,1 ,20) FROM PS_SRVC_IN_RSN_TBL X , PS_INSTITUTION_TBL B , PS_SRVC_IND_CD_TBL C , PS_DEPT_TBL E , PS_SRVC_IND_DATA A LEFT OUTER JOIN PS_EMAIL_ADDRESSES F ON A.CONTACT_ID = F.EMPLID AND F.PREF_EMAIL_FLAG = 'Y' LEFT OUTER JOIN PS_TERM_VAL_TBL D ON A.SRVC_IND_ACT_TERM = D.STRM LEFT OUTER JOIN PS_TERM_VAL_TBL G ON A.SCC_SI_END_TERM = G.STRM WHERE A.INSTITUTION = B.INSTITUTION AND C.SCC_HOLD_DISPLAY = 'Y' AND B.EFF_STATUS = 'A' AND B.EFFDT = ( SELECT MAX(B1.EFFDT) FROM PS_INSTITUTION_TBL B1 WHERE B1.INSTITUTION = A.INSTITUTION AND B1.EFFDT <= %CurrentDateIn) AND A.SRVC_IND_CD = C.SRVC_IND_CD AND A.INSTITUTION = C.INSTITUTION AND C.EFFDT = ( SELECT MAX(C1.EFFDT) FROM PS_SRVC_IND_CD_TBL C1 WHERE C1.INSTITUTION = A.INSTITUTION AND C1.SRVC_IND_CD = A.SRVC_IND_CD AND C1.EFFDT <= %CurrentDateIn) AND C.EFF_STATUS='A' AND A.DEPTID = E.DEPTID AND E.SETID = ( SELECT E2.SETID FROM PS_SET_CNTRL_GROUP E2 WHERE E2.SETCNTRLVALUE = A.INSTITUTION AND E2.REC_GROUP_ID = ( SELECT E3.REC_GROUP_ID FROM PS_REC_GROUP_REC E3 WHERE E3.RECNAME = 'DEPT_TBL')) AND E.EFFDT = ( SELECT MAX(E1.EFFDT) FROM PS_DEPT_TBL_VW E1 WHERE E1.DEPTID = A.DEPTID AND E1.SETID = E.SETID AND E1.EFFDT <= %CurrentDateIn) AND X.INSTITUTION = C.INSTITUTION AND X.SRVC_IND_CD = C.SRVC_IND_CD AND X.EFFDT = C.EFFDT AND X.SRVC_IND_REASON = A.SRVC_IND_REASON

  • Related Language Record: SRVCINDHOLDVWLN
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
    2 SRVC_IND_DTTM DateTime(26) TIMESTAMP Service Indicator Date-Time field
    3 SRVC_IND_ACTIVE_DT Date(10) DATE Service Indicator Start Date
    4 INSTITUTION Character(5) VARCHAR2(5) NOT NULL Academic Institution
    5 DESCR Character(30) VARCHAR2(30) NOT NULL Description
    6 SRVC_IND_CD Character(3) VARCHAR2(3) NOT NULL Service Indicator Cd
    7 DESCR1 Character(30) VARCHAR2(30) NOT NULL Descr
    8 SRVC_IND_REASON Character(5) VARCHAR2(5) NOT NULL Service Indicator Reason
    9 SRVC_IND_ACT_TERM Character(4) VARCHAR2(4) NOT NULL Service Indicator Start Term
    10 DESCR2 Character(30) VARCHAR2(30) NOT NULL Descr2
    11 DEPTID Character(10) VARCHAR2(10) NOT NULL Department
    12 DESCR3 Character(30) VARCHAR2(30) NOT NULL Descr 3
    13 CONTACT_ID Character(15) VARCHAR2(15) NOT NULL Contact Identifier for Treasury Contacts
    14 CONTACT Character(30) VARCHAR2(30) NOT NULL Contact Person
    15 EMAIL_ADDR Character(70) VARCHAR2(70) NOT NULL Email Address
    16 AMOUNT Signed Number(20,3) DECIMAL(18,3) NOT NULL Commuting Allowance Paid Per Cycle.
    17 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code

    Prompt Table: CURRENCY_CD_TBL

    18 DESCRLONG Long Character CLOB Long Description
    19 SCC_SI_END_DT Date(10) DATE Service Indicator End Date
    20 SCC_SI_END_TERM Character(4) VARCHAR2(4) NOT NULL Service Indicator End Term
    21 DESCR20 Character(20) VARCHAR2(20) NOT NULL Description