UX_EXPR_MEM_LNG

(SQL View)
Index Back

Expiring Memebership

Language table for View used for checking expiring membership.

SELECT B.EMPLID ,%Substring(A.JPM_CAT_ITEM_ID,1,8) ,A.EFFDT ,C.LANGUAGE_CD ,%Substring(C.JPM_DESCR90,1,30) ,C.DESCRSHORT FROM PS_JPM_JP_ITEMS A , PS_JPM_PROFILE B , PS_JPM_CAT_ITM_LNG C , PS_NAMES D WHERE A.JPM_PROFILE_ID = B.JPM_PROFILE_ID AND B.JPM_JP_TYPE = ( SELECT JPM_PRI_PERS_TYPE FROM PS_JPM_JP_PRI_TYPE) AND C.JPM_CAT_TYPE= A.JPM_CAT_TYPE AND C.JPM_CAT_ITEM_ID= A.JPM_CAT_ITEM_ID AND B.EMPLID = D.EMPLID AND A.JPM_CAT_TYPE = 'MEM' AND A.EFFDT = ( SELECT MAX(EFFDT) FROM PS_JPM_JP_ITEMS E WHERE E.JPM_PROFILE_ID = A.JPM_PROFILE_ID AND E.JPM_CAT_TYPE= A.JPM_CAT_TYPE AND E.JPM_CAT_ITEM_ID= A.JPM_CAT_ITEM_ID AND E.EFFDT <= %CurrentDateIn) AND C.EFFDT = ( SELECT MAX(EFFDT) FROM PS_JPM_CAT_ITEMS F WHERE F.JPM_CAT_TYPE= A.JPM_CAT_TYPE AND F.JPM_CAT_ITEM_ID= A.JPM_CAT_ITEM_ID AND F.EFFDT <= A.EFFDT)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
2 ACCOMPLISHMENT Character(8) VARCHAR2(8) NOT NULL Accomplishment
3 EFFDT Date(10) DATE Effective Date

Default Value: %date

4 LANGUAGE_CD Character(3) VARCHAR2(3) NOT NULL Language Code
5 DESCR Character(30) VARCHAR2(30) NOT NULL Description
6 DESCRSHORT Character(10) VARCHAR2(10) NOT NULL Short Description