SELECT A.JPM_JP_TYPE ,C.JPM_CAT_TYPE ,R.FIELDNUM ,A.FIELDNAME ,A.JPM_LABEL_TEXT ,A.JPM_C_LIST_ID ,D.JPM_KEY_RECNAME ,A.JPM_PRP_DEFAULT ,C.JPM_JP_PSECTION_ID FROM PS_JPM_JP_TYPES T , PS_JPM_JP_PROPS A , PS_JPM_JP_SECTION C , PS_JPM_C_LIST_DEFN D , PSRECFIELDDB R WHERE %EffdtCheck(JPM_JP_TYPES T1, T, %CurrentDateIn) AND C.JPM_JP_TYPE = T.JPM_JP_TYPE AND C.EFFDT = T.EFFDT AND A.JPM_JP_TYPE = C.JPM_JP_TYPE AND A.EFFDT = C.EFFDT AND A.JPM_JP_SECTION_ID= C.JPM_JP_SECTION_ID AND D.JPM_C_LIST_ID = A.JPM_C_LIST_ID AND %EffdtCheck(JPM_C_LIST_DEFN D1, D, %CurrentDateIn) AND A.JPM_SRCH_FLG ='Y' AND R.RECNAME = 'JPM_CSC_CRIT_WK' AND A.FIELDNAME = R.FIELDNAME UNION SELECT A.JPM_JP_TYPE ,C.JPM_CAT_TYPE ,R.FIELDNUM ,A.FIELDNAME ,A.JPM_LABEL_TEXT ,' ' ,' ' ,A.JPM_PRP_DEFAULT ,C.JPM_JP_PSECTION_ID FROM PS_JPM_JP_TYPES T , PS_JPM_JP_PROPS A , PS_JPM_JP_SECTION C , PSRECFIELDDB R WHERE %EffdtCheck(JPM_JP_TYPES T1, T, %CurrentDateIn) AND C.JPM_JP_TYPE = T.JPM_JP_TYPE AND C.EFFDT = T.EFFDT AND A.JPM_JP_TYPE = C.JPM_JP_TYPE AND A.EFFDT = C.EFFDT AND A.JPM_JP_SECTION_ID= C.JPM_JP_SECTION_ID AND A.JPM_C_LIST_ID = ' ' AND A.JPM_SRCH_FLG ='Y' AND R.RECNAME = 'JPM_CSC_CRIT_WK' AND A.FIELDNAME = R.FIELDNAME
|