SSR_BR_RSV1_NLD(SQL View) |
Index Back |
---|---|
Results Courses Current View 2Course results current view VAVO - Subjects |
SELECT DISTINCT ES.EMPLID ,ES.INSTITUTION , ES.SCC_BRINCD_NLD , ES.SSR_BR_ENRL_SQ_NLD , ES.SSR_BR_ENRL_SQ_NLD , ITMVWS.SCC_CAF_ATTR_VAL AS SSR_BR_RESL_SQ_NLD , CASE WHEN ITM.SSR_SATISFIED_FL = 'W' THEN SCH.ACAD_YEAR ELSE SCH2.ACAD_YEAR END AS SSR_BR_ACD_YR_NLD ,(%Sql(SSR_BR_VA_GET_CAF_AIRADD_NLD, ES.INSTITUTION, ITM.SSR_ITEM_ID,'NLD_VA_LEVEL')) AS SSR_BR_EXA_LVL_NLD ,CASE WHEN (ITM.SSR_SATISFIED_FL = 'W' AND ITM.SSR_EXAM_ONLY_FL = 'N') THEN 'V' ELSE CASE WHEN (ITM.SSR_SATISFIED_FL = 'W' AND ITM.SSR_EXAM_ONLY_FL = 'Y') THEN 'O' END END AS SSR_BR_RSN_NP_NLD , CASE WHEN RSLT.SSR_PE_RSN_CD = ENRV.SSR_BR_ERSN_CD_NLD THEN 'Y' ELSE 'N' END AS SSR_BR_IND_EXC_NLD , ' ' AS SSR_BR_COM_GRD_NLD , ' ' AS SSR_BR_TEST_CD_NLD , ' ' AS SSR_BR_EGRDTST_NLD , ' ' AS SSR_BR_DESC150_NLD , ' ' AS SSR_BR_PAP_ASS_NLD , ' ' AS SSR_BR_PAP_GRD_NLD , ITMVWS.SCC_CAF_ATTR_VAL AS SSR_BR_SUBJ_CD_NLD ,RSLT.SSR_RSLT_NVAL AS SSR_BR_END_GRD_NLD ,CASE WHEN (ITM.SSR_EXAM_ONLY_FL = 'Y' AND ITM.SSR_SATISFIED_FL <> 'W') THEN 'Y' ELSE 'N' END AS SSR_BR_IND_PAP_NLD , ' ' AS SSR_BR_SUBS_CD_NLD ,RSLT2.SSR_RSLT_NVAL AS SSR_BR_SE_GRD_NLD , ES.ACAD_CAREER ,ES.STDNT_CAR_NBR FROM PS_SSR_BR_ENVVWNLD ES JOIN PS_SSR_BR_ENRV_NLD ENRV ON ES.INSTITUTION = ENRV.INSTITUTION AND ES.SCC_BRINCD_NLD = ENRV.SCC_BRINCD_NLD AND ENRV.EFFDT = ( SELECT MAX(ENRV1.EFFDT) FROM PS_SSR_BR_ENRV_NLD ENRV1 WHERE ENRV.INSTITUTION = ENRV1.INSTITUTION AND ENRV.SCC_BRINCD_NLD = ENRV1.SCC_BRINCD_NLD ) JOIN PS_SSR_BR_RCSG_NLD RCSG ON RCSG.INSTITUTION = ES.INSTITUTION AND RCSG.SCC_BRINCD_NLD = ES.SCC_BRINCD_NLD AND RCSG.EFFDT = ENRV.EFFDT JOIN PS_SSR_BR_REEX_NLD REEX ON REEX.INSTITUTION = ES.INSTITUTION AND REEX.SCC_BRINCD_NLD = ES.SCC_BRINCD_NLD AND REEX.EFFDT = ENRV.EFFDT JOIN PS_SSR_APT_HDR HDR ON HDR.EMPLID = ES.EMPLID AND HDR.INSTITUTION = ES.INSTITUTION AND HDR.SSR_APT_INSTANCE = ES.SSR_APT_INSTANCE JOIN PS_SSR_APT_ITEM ITM ON ITM.INSTITUTION = ES.INSTITUTION AND ITM.EMPLID = ES.EMPLID AND ITM.SSR_APT_INSTANCE = ES.SSR_APT_INSTANCE AND ITM.SSR_SUBSTITUTED_FL = 'N' AND ITM.SSR_APT_ITEM_FOR = 0 LEFT OUTER JOIN PS_SSR_APT_ATT ATT ON ITM.INSTITUTION = ATT.INSTITUTION AND ATT.SSR_INCL_IN_CALC = 'Y' AND (ATT.SSR_ATT_STAT >='30' OR ITM.SSR_SATISFIED_FL = 'W') AND ITM.EMPLID = ATT.EMPLID AND ITM.SSR_APT_INSTANCE = ATT.SSR_APT_INSTANCE AND ITM.SSR_APT_ITEM_SEQ = ATT.SSR_APT_ITEM_SEQ LEFT OUTER JOIN PS_SSR_APT_RSLT RSLT ON RSLT.INSTITUTION = ATT.INSTITUTION AND RSLT.SSR_INCL_IN_CALC = 'Y' AND RSLT.SSR_RSLT_TYPE_STAT >= '30' AND RSLT.EMPLID = ATT.EMPLID AND RSLT.SSR_APT_INSTANCE = ATT.SSR_APT_INSTANCE AND RSLT.SSR_APT_ITEM_SEQ = ATT.SSR_APT_ITEM_SEQ AND RSLT.ATTEMPT_NBR = ATT.ATTEMPT_NBR AND (RSLT.SSR_RES_MAP_ID = REEX.SSR_RES_MAP_ID AND RSLT.SSR_RSLT_TYPE = REEX.SSR_RSLT_TYPE) LEFT OUTER JOIN PS_SSR_APT_SCHD SCH ON SCH.EMPLID=ATT.EMPLID AND SCH.INSTITUTION=ATT.INSTITUTION AND SCH.SSR_APT_INSTANCE=ATT.SSR_APT_INSTANCE AND SCH.SSR_APT_ITEM_SEQ=ATT.SSR_APT_ITEM_SEQ AND SCH.ATTEMPT_NBR=ATT.ATTEMPT_NBR JOIN PS_SSR_AIR_ADD ITMVWS ON ES.INSTITUTION = ITMVWS.INSTITUTION AND ITM.SSR_ITEM_ID = ITMVWS.SSR_ITEM_ID AND ITMVWS.SCC_CAF_ATTRIB_NM = 'NLD_VA_SUBJ_CD' AND ITMVWS.EFFDT = ( SELECT MAX(ITMVWS1.EFFDT) FROM PS_SSR_AIR_ADD ITMVWS1 WHERE ITMVWS1.INSTITUTION = ITMVWS.INSTITUTION AND ITMVWS1.SSR_ITEM_ID = ITMVWS.SSR_ITEM_ID AND ITMVWS1.EFFDT <= ES.EFFDT_VAR) AND ITM.SSR_ITEM_TYPE IN ( SELECT AITV.SSR_ITEM_TYPE FROM PS_SSR_BR_AITV_NLD AITV WHERE AITV.INSTITUTION = ES.INSTITUTION AND AITV.SCC_BRINCD_NLD = ES.SCC_BRINCD_NLD AND AITV.SSR_BR_TSTTYPV_NLD = 'EN' AND AITV.EFFDT = ( SELECT MAX(AITV1.EFFDT) FROM PS_SSR_BR_AITV_NLD AITV1 WHERE AITV1.INSTITUTION = AITV.INSTITUTION AND AITV1.SCC_BRINCD_NLD = AITV.SCC_BRINCD_NLD AND AITV1.SSR_BR_TSTTYPV_NLD = AITV.SSR_BR_TSTTYPV_NLD)) LEFT OUTER JOIN PS_SSR_APT_ITEM ITM2 ON ITM2.INSTITUTION = ES.INSTITUTION AND ITM2.EMPLID = ES.EMPLID AND ITM2.SSR_APT_INSTANCE = ES.SSR_APT_INSTANCE AND ITM2.SSR_APT_ITEM_PAR = ITM.SSR_APT_ITEM_SEQ LEFT OUTER JOIN PS_SSR_APT_ATT ATT2 ON ATT2.INSTITUTION = ITM2.INSTITUTION AND ATT2.SSR_INCL_IN_CALC = 'Y' AND (ATT2.SSR_ATT_STAT >= '30' OR ITM2.SSR_SATISFIED_FL = 'W') AND ATT2.EMPLID = ITM2.EMPLID AND ATT2.SSR_APT_INSTANCE = ITM2.SSR_APT_INSTANCE AND ATT2.SSR_APT_ITEM_SEQ = ITM2.SSR_APT_ITEM_SEQ LEFT OUTER JOIN PS_SSR_APT_RSLT RSLT2 ON RSLT2.INSTITUTION = ATT2.INSTITUTION AND RSLT2.SSR_INCL_IN_CALC = 'Y' AND RSLT2.SSR_RSLT_TYPE_STAT >= '30' AND RSLT2.EMPLID = ATT2.EMPLID AND RSLT2.SSR_APT_INSTANCE = ATT2.SSR_APT_INSTANCE AND RSLT2.SSR_APT_ITEM_SEQ = ATT2.SSR_APT_ITEM_SEQ AND RSLT2.ATTEMPT_NBR = ATT2.ATTEMPT_NBR AND (RSLT2.SSR_RES_MAP_ID = RCSG.SSR_RES_MAP_ID AND RSLT2.SSR_RSLT_TYPE = RCSG.SSR_RSLT_TYPE) LEFT OUTER JOIN PS_SSR_APT_SCHD SCH2 ON SCH2.EMPLID=ATT2.EMPLID AND SCH2.INSTITUTION=ATT2.INSTITUTION AND SCH2.SSR_APT_INSTANCE=ATT2.SSR_APT_INSTANCE AND SCH2.SSR_APT_ITEM_SEQ=ATT2.SSR_APT_ITEM_SEQ AND SCH2.ATTEMPT_NBR=ATT2.ATTEMPT_NBR JOIN PS_SSR_AIR_ADD ITMVWS2 ON ES.INSTITUTION = ITMVWS2.INSTITUTION AND ITM2.SSR_ITEM_ID = ITMVWS2.SSR_ITEM_ID AND ITMVWS2.SCC_CAF_ATTRIB_NM = 'NLD_VA_EXAM_TP' AND ITMVWS2.SCC_CAF_ATTR_VAL = 'SE' AND ITMVWS2.EFFDT = ( SELECT MAX(ITMVWS3.EFFDT) FROM PS_SSR_AIR_ADD ITMVWS3 WHERE ITMVWS3.INSTITUTION = ITMVWS2.INSTITUTION AND ITMVWS3.SSR_ITEM_ID = ITMVWS2.SSR_ITEM_ID AND ITMVWS3.EFFDT <= ES.EFFDT_VAR) WHERE (ATT.ATTEMPT_NBR = ( SELECT MAX(ATT1.ATTEMPT_NBR) FROM PS_SSR_APT_ATT ATT1 WHERE ATT1.INSTITUTION = ATT.INSTITUTION AND ATT1.EMPLID = ATT.EMPLID AND ATT1.SSR_APT_INSTANCE = ATT.SSR_APT_INSTANCE AND ATT1.SSR_APT_ITEM_SEQ = ATT.SSR_APT_ITEM_SEQ AND ATT1.SSR_INCL_IN_CALC = 'Y' AND (ATT1.SSR_ATT_STAT >='30' OR ITM.SSR_SATISFIED_FL = 'W')) OR ATT.ATTEMPT_NBR IS NULL) AND (ATT2.ATTEMPT_NBR = ( SELECT MAX(ATT1.ATTEMPT_NBR) FROM PS_SSR_APT_ATT ATT1 WHERE ATT1.INSTITUTION = ATT2.INSTITUTION AND ATT1.EMPLID = ATT2.EMPLID AND ATT1.SSR_APT_INSTANCE = ATT2.SSR_APT_INSTANCE AND ATT1.SSR_APT_ITEM_SEQ = ATT2.SSR_APT_ITEM_SEQ AND ATT1.SSR_INCL_IN_CALC = 'Y' AND (ATT1.SSR_ATT_STAT >='30' OR ITM2.SSR_SATISFIED_FL = 'W')) OR ATT2.ATTEMPT_NBR IS NULL) AND (RSLT.SSR_RSLT_SEQ = ( SELECT MAX(RSLT1.SSR_RSLT_SEQ) FROM PS_SSR_APT_RSLT RSLT1 WHERE RSLT1.INSTITUTION = RSLT.INSTITUTION AND RSLT1.EMPLID = RSLT.EMPLID AND RSLT1.SSR_APT_INSTANCE = RSLT.SSR_APT_INSTANCE AND RSLT1.SSR_APT_ITEM_SEQ = RSLT.SSR_APT_ITEM_SEQ AND RSLT.ATTEMPT_NBR = RSLT1.ATTEMPT_NBR AND RSLT1.SSR_INCL_IN_CALC = 'Y' AND RSLT1.SSR_RSLT_TYPE_STAT >= '30' AND (RSLT1.SSR_RES_MAP_ID = REEX.SSR_RES_MAP_ID AND RSLT1.SSR_RSLT_TYPE = REEX.SSR_RSLT_TYPE)) OR RSLT.SSR_RSLT_SEQ IS NULL) AND (RSLT2.SSR_RSLT_SEQ = ( SELECT MAX(RSLT1.SSR_RSLT_SEQ) FROM PS_SSR_APT_RSLT RSLT1 WHERE RSLT1.INSTITUTION = RSLT2.INSTITUTION AND RSLT1.EMPLID = RSLT2.EMPLID AND RSLT1.SSR_APT_INSTANCE = RSLT2.SSR_APT_INSTANCE AND RSLT1.SSR_APT_ITEM_SEQ = RSLT2.SSR_APT_ITEM_SEQ AND RSLT1.ATTEMPT_NBR = RSLT2.ATTEMPT_NBR AND RSLT1.SSR_INCL_IN_CALC = 'Y' AND RSLT1.SSR_RSLT_TYPE_STAT >= '30' AND (RSLT1.SSR_RES_MAP_ID = RCSG.SSR_RES_MAP_ID AND RSLT1.SSR_RSLT_TYPE = RCSG.SSR_RSLT_TYPE)) OR RSLT2.SSR_RSLT_SEQ IS NULL) AND (SCH.STRM = ( SELECT MAX(SCH1.STRM) FROM PS_SSR_APT_SCHD SCH1 WHERE SCH1.INSTITUTION = SCH.INSTITUTION AND SCH1.EMPLID = SCH.EMPLID AND SCH1.SSR_APT_INSTANCE = SCH.SSR_APT_INSTANCE AND SCH1.SSR_APT_ITEM_SEQ = SCH.SSR_APT_ITEM_SEQ AND SCH1.ATTEMPT_NBR = SCH.ATTEMPT_NBR) OR SCH.STRM IS NULL) AND (SCH2.STRM = ( SELECT MAX(SCH1.STRM) FROM PS_SSR_APT_SCHD SCH1 WHERE SCH1.INSTITUTION = SCH2.INSTITUTION AND SCH1.EMPLID = SCH2.EMPLID AND SCH1.SSR_APT_INSTANCE = SCH2.SSR_APT_INSTANCE AND SCH1.SSR_APT_ITEM_SEQ = SCH2.SSR_APT_ITEM_SEQ AND SCH1.ATTEMPT_NBR = SCH2.ATTEMPT_NBR) OR SCH2.STRM IS NULL) AND NOT(SCH.ACAD_YEAR IS NULL AND SCH2.ACAD_YEAR IS NULL AND ITM.SSR_SATISFIED_FL <> 'W') UNION SELECT DISTINCT ES.EMPLID ,ES.INSTITUTION , ES.SCC_BRINCD_NLD , ES.SSR_BR_ENRL_SQ_NLD , ES.SSR_BR_ENRL_SQ_NLD , ITMVWS.SCC_CAF_ATTR_VAL AS SSR_BR_RESL_SQ_NLD , SCH2.ACAD_YEAR AS SSR_BR_ACD_YR_NLD ,(%Sql(SSR_BR_VA_GET_CAF_AIRADD_NLD, ES.INSTITUTION, ITM.SSR_ITEM_ID,'NLD_VA_LEVEL')) AS SSR_BR_EXA_LVL_NLD ,CASE WHEN (ITM.SSR_SATISFIED_FL = 'W' AND ITM.SSR_EXAM_ONLY_FL = 'N') THEN 'V' ELSE CASE WHEN (ITM.SSR_SATISFIED_FL = 'W' AND ITM.SSR_EXAM_ONLY_FL = 'Y') THEN 'O' END END AS SSR_BR_RSN_NP_NLD , CASE WHEN RSLT.SSR_PE_RSN_CD = ENRV.SSR_BR_ERSN_CD_NLD THEN 'Y' ELSE 'N' END AS SSR_BR_IND_EXC_NLD , ' ' AS SSR_BR_COM_GRD_NLD , ' ' AS SSR_BR_TEST_CD_NLD , ' ' AS SSR_BR_EGRDTST_NLD , ' ' AS SSR_BR_DESC150_NLD , ' ' AS SSR_BR_PAP_ASS_NLD , ' ' AS SSR_BR_PAP_GRD_NLD , ITMVWS.SCC_CAF_ATTR_VAL AS SSR_BR_SUBJ_CD_NLD ,RSLT.SSR_RSLT_NVAL AS SSR_BR_END_GRD_NLD ,CASE WHEN (ITM.SSR_EXAM_ONLY_FL = 'Y' AND ITM.SSR_SATISFIED_FL <> 'W') THEN 'Y' ELSE 'N' END AS SSR_BR_IND_PAP_NLD , (%Sql(SSR_BR_VA_GET_CAF_AIRADD_NLD, ES.INSTITUTION, ITMSUB.SSR_ITEM_ID,'NLD_VA_SUBJ_CD')) AS SSR_BR_SUBS_CD_NLD ,RSLT2.SSR_RSLT_NVAL AS SSR_BR_SE_GRD_NLD , ES.ACAD_CAREER ,ES.STDNT_CAR_NBR FROM PS_SSR_BR_ENVVWNLD ES JOIN PS_SSR_BR_ENRV_NLD ENRV ON ES.INSTITUTION = ENRV.INSTITUTION AND ES.SCC_BRINCD_NLD = ENRV.SCC_BRINCD_NLD AND ENRV.EFFDT = ( SELECT MAX(ENRV1.EFFDT) FROM PS_SSR_BR_ENRV_NLD ENRV1 WHERE ENRV.INSTITUTION = ENRV1.INSTITUTION AND ENRV.SCC_BRINCD_NLD = ENRV1.SCC_BRINCD_NLD ) JOIN PS_SSR_BR_RCSG_NLD RCSG ON RCSG.INSTITUTION = ES.INSTITUTION AND RCSG.SCC_BRINCD_NLD = ES.SCC_BRINCD_NLD AND RCSG.EFFDT = ENRV.EFFDT JOIN PS_SSR_BR_REEX_NLD REEX ON REEX.INSTITUTION = ES.INSTITUTION AND REEX.SCC_BRINCD_NLD = ES.SCC_BRINCD_NLD AND REEX.EFFDT = ENRV.EFFDT JOIN PS_SSR_APT_HDR HDR ON HDR.EMPLID = ES.EMPLID AND HDR.INSTITUTION = ES.INSTITUTION AND HDR.SSR_APT_INSTANCE = ES.SSR_APT_INSTANCE JOIN PS_SSR_APT_ITEM ITMSUB ON ES.INSTITUTION = ITMSUB.INSTITUTION AND ES.EMPLID = ITMSUB.EMPLID AND ES.SSR_APT_INSTANCE = ITMSUB.SSR_APT_INSTANCE AND ITMSUB.SSR_SUBSTITUTED_FL = 'Y' LEFT OUTER JOIN PS_SSR_APT_SUBS SUBS ON SUBS.INSTITUTION = ITMSUB.INSTITUTION AND SUBS.EMPLID = ITMSUB.EMPLID AND SUBS.SSR_APT_INSTANCE = ITMSUB.SSR_APT_INSTANCE AND SUBS.SSR_APT_ITEM_SEQ = ITMSUB.SSR_APT_ITEM_SEQ JOIN PS_SSR_APT_ITEM ITM ON ITM.INSTITUTION = SUBS.INSTITUTION AND ITM.EMPLID = SUBS.EMPLID AND ITM.SSR_APT_INSTANCE = SUBS.SSR_APT_INSTANCE AND ITM.SSR_APT_ITEM_SEQ = SUBS.SSR_APT_ITEM_SUB LEFT OUTER JOIN PS_SSR_APT_ATT ATT ON ATT.INSTITUTION = ITM.INSTITUTION AND ATT.SSR_INCL_IN_CALC = 'Y' AND (ATT.SSR_ATT_STAT >='30' OR ITM.SSR_SATISFIED_FL = 'W') AND ATT.EMPLID = ITM.EMPLID AND ATT.SSR_APT_INSTANCE = ITM.SSR_APT_INSTANCE AND ATT.SSR_APT_ITEM_SEQ = ITM.SSR_APT_ITEM_SEQ LEFT OUTER JOIN PS_SSR_APT_RSLT RSLT ON RSLT.INSTITUTION = ATT.INSTITUTION AND RSLT.SSR_INCL_IN_CALC = 'Y' AND RSLT.SSR_RSLT_TYPE_STAT >= '30' AND RSLT.EMPLID = ATT.EMPLID AND RSLT.SSR_APT_INSTANCE = ATT.SSR_APT_INSTANCE AND RSLT.SSR_APT_ITEM_SEQ = ATT.SSR_APT_ITEM_SEQ AND RSLT.ATTEMPT_NBR = ATT.ATTEMPT_NBR AND (RSLT.SSR_RES_MAP_ID = REEX.SSR_RES_MAP_ID AND RSLT.SSR_RSLT_TYPE = REEX.SSR_RSLT_TYPE) LEFT OUTER JOIN PS_SSR_APT_SCHD SCH ON SCH.EMPLID=ATT.EMPLID AND SCH.INSTITUTION=ATT.INSTITUTION AND SCH.SSR_APT_INSTANCE=ATT.SSR_APT_INSTANCE AND SCH.SSR_APT_ITEM_SEQ=ATT.SSR_APT_ITEM_SEQ AND SCH.ATTEMPT_NBR=ATT.ATTEMPT_NBR JOIN PS_SSR_AIR_ADD ITMVWS ON ES.INSTITUTION = ITMVWS.INSTITUTION AND ITM.SSR_ITEM_ID = ITMVWS.SSR_ITEM_ID AND ITMVWS.SCC_CAF_ATTRIB_NM = 'NLD_VA_SUBJ_CD' AND ITMVWS.EFFDT = ( SELECT MAX(ITMVWS1.EFFDT) FROM PS_SSR_AIR_ADD ITMVWS1 WHERE ITMVWS1.INSTITUTION = ITMVWS.INSTITUTION AND ITMVWS1.SSR_ITEM_ID = ITMVWS.SSR_ITEM_ID AND ITMVWS1.EFFDT <= ES.EFFDT_VAR) AND ITM.SSR_ITEM_TYPE IN ( SELECT AITV.SSR_ITEM_TYPE FROM PS_SSR_BR_AITV_NLD AITV WHERE AITV.INSTITUTION = ES.INSTITUTION AND AITV.SCC_BRINCD_NLD = ES.SCC_BRINCD_NLD AND AITV.SSR_BR_TSTTYPV_NLD = 'EN' AND AITV.EFFDT = ( SELECT MAX(AITV1.EFFDT) FROM PS_SSR_BR_AITV_NLD AITV1 WHERE AITV1.INSTITUTION = AITV.INSTITUTION AND AITV1.SCC_BRINCD_NLD = AITV.SCC_BRINCD_NLD AND AITV1.SSR_BR_TSTTYPV_NLD = AITV.SSR_BR_TSTTYPV_NLD)) LEFT OUTER JOIN PS_SSR_APT_ITEM ITM2 ON ITM2.INSTITUTION = ES.INSTITUTION AND ITM2.EMPLID = ES.EMPLID AND ITM2.SSR_APT_INSTANCE = ES.SSR_APT_INSTANCE AND ITM2.SSR_APT_ITEM_PAR = ITM.SSR_APT_ITEM_SEQ LEFT OUTER JOIN PS_SSR_APT_ATT ATT2 ON ATT2.INSTITUTION = ITM2.INSTITUTION AND ATT2.SSR_INCL_IN_CALC = 'Y' AND (ATT2.SSR_ATT_STAT >='30' OR ITM2.SSR_SATISFIED_FL = 'W') AND ATT2.EMPLID = ITM2.EMPLID AND ATT2.SSR_APT_INSTANCE = ITM2.SSR_APT_INSTANCE AND ATT2.SSR_APT_ITEM_SEQ = ITM2.SSR_APT_ITEM_SEQ AND ATT2.SSR_INCL_IN_CALC = 'Y' LEFT OUTER JOIN PS_SSR_APT_RSLT RSLT2 ON RSLT2.INSTITUTION = ATT2.INSTITUTION AND RSLT2.SSR_INCL_IN_CALC = 'Y' AND RSLT2.SSR_RSLT_TYPE_STAT >= '30' AND RSLT2.EMPLID = ATT2.EMPLID AND RSLT2.SSR_APT_INSTANCE = ATT2.SSR_APT_INSTANCE AND RSLT2.SSR_APT_ITEM_SEQ = ATT2.SSR_APT_ITEM_SEQ AND RSLT2.ATTEMPT_NBR = ATT2.ATTEMPT_NBR AND RSLT2.SSR_INCL_IN_CALC = 'Y' AND RSLT2.SSR_RSLT_TYPE_STAT >= '30' AND (RSLT2.SSR_RES_MAP_ID = RCSG.SSR_RES_MAP_ID AND RSLT2.SSR_RSLT_TYPE = RCSG.SSR_RSLT_TYPE) LEFT OUTER JOIN PS_SSR_APT_SCHD SCH2 ON SCH2.EMPLID=ATT2.EMPLID AND SCH2.INSTITUTION=ATT2.INSTITUTION AND SCH2.SSR_APT_INSTANCE=ATT2.SSR_APT_INSTANCE AND SCH2.SSR_APT_ITEM_SEQ=ATT2.SSR_APT_ITEM_SEQ AND SCH2.ATTEMPT_NBR=ATT2.ATTEMPT_NBR JOIN PS_SSR_AIR_ADD ITMVWS2 ON ES.INSTITUTION = ITMVWS2.INSTITUTION AND ITM2.SSR_ITEM_ID = ITMVWS2.SSR_ITEM_ID AND ITMVWS2.SCC_CAF_ATTRIB_NM = 'NLD_VA_EXAM_TP' AND ITMVWS2.SCC_CAF_ATTR_VAL = 'SE' AND ITMVWS2.EFFDT = ( SELECT MAX(ITMVWS3.EFFDT) FROM PS_SSR_AIR_ADD ITMVWS3 WHERE ITMVWS3.INSTITUTION = ITMVWS2.INSTITUTION AND ITMVWS3.SSR_ITEM_ID = ITMVWS2.SSR_ITEM_ID AND ITMVWS3.EFFDT <= ES.EFFDT_VAR) AND (ATT.ATTEMPT_NBR = ( SELECT MAX(ATT1.ATTEMPT_NBR) FROM PS_SSR_APT_ATT ATT1 WHERE ATT1.INSTITUTION = ATT.INSTITUTION AND ATT1.EMPLID = ATT.EMPLID AND ATT1.SSR_APT_INSTANCE = ATT.SSR_APT_INSTANCE AND ATT1.SSR_APT_ITEM_SEQ = ATT.SSR_APT_ITEM_SEQ AND ATT1.SSR_INCL_IN_CALC = 'Y' AND (ATT1.SSR_ATT_STAT >='30' OR ITM.SSR_SATISFIED_FL = 'W')) OR ATT.ATTEMPT_NBR IS NULL) AND (ATT2.ATTEMPT_NBR = ( SELECT MAX(ATT1.ATTEMPT_NBR) FROM PS_SSR_APT_ATT ATT1 WHERE ATT1 .INSTITUTION = ATT2.INSTITUTION AND ATT1.EMPLID = ATT2.EMPLID AND ATT1.SSR_APT_INSTANCE = ATT2.SSR_APT_INSTANCE AND ATT1.SSR_APT_ITEM_SEQ = ATT2.SSR_APT_ITEM_SEQ AND ATT1.SSR_INCL_IN_CALC = 'Y' AND (ATT1.SSR_ATT_STAT >='30' OR ITM2.SSR_SATISFIED_FL = 'W')) OR ATT2.ATTEMPT_NBR IS NULL) AND (RSLT.SSR_RSLT_SEQ = ( SELECT MAX(RSLT1.SSR_RSLT_SEQ) FROM PS_SSR_APT_RSLT RSLT1 WHERE RSLT1.INSTITUTION = RSLT.INSTITUTION AND RSLT1.EMPLID = RSLT.EMPLID AND RSLT1.SSR_APT_INSTANCE = RSLT.SSR_APT_INSTANCE AND RSLT1.SSR_APT_ITEM_SEQ = RSLT.SSR_APT_ITEM_SEQ AND RSLT1.ATTEMPT_NBR = RSLT.ATTEMPT_NBR AND RSLT1.SSR_INCL_IN_CALC = 'Y' AND RSLT1.SSR_RSLT_TYPE_STAT >= '30' AND (RSLT1.SSR_RES_MAP_ID = REEX.SSR_RES_MAP_ID AND RSLT1.SSR_RSLT_TYPE = REEX.SSR_RSLT_TYPE) ) OR RSLT.SSR_RSLT_SEQ IS NULL) AND (RSLT2.SSR_RSLT_SEQ = ( SELECT MAX(RSLT1.SSR_RSLT_SEQ) FROM PS_SSR_APT_RSLT RSLT1 WHERE RSLT1.INSTITUTION = RSLT2.INSTITUTION AND RSLT1.EMPLID = RSLT2.EMPLID AND RSLT1.SSR_APT_INSTANCE = RSLT2.SSR_APT_INSTANCE AND RSLT1.SSR_APT_ITEM_SEQ = RSLT2.SSR_APT_ITEM_SEQ AND RSLT1.ATTEMPT_NBR = RSLT2.ATTEMPT_NBR AND RSLT1.SSR_INCL_IN_CALC = 'Y' AND RSLT1.SSR_RSLT_TYPE_STAT >= '30' AND (RSLT1.SSR_RES_MAP_ID = RCSG.SSR_RES_MAP_ID AND RSLT1.SSR_RSLT_TYPE = RCSG.SSR_RSLT_TYPE) ) OR RSLT2.SSR_RSLT_SEQ IS NULL) AND (SCH.STRM = ( SELECT MAX(SCH1.STRM) FROM PS_SSR_APT_SCHD SCH1 WHERE SCH1.INSTITUTION = SCH.INSTITUTION AND SCH1.EMPLID = SCH.EMPLID AND SCH1.SSR_APT_INSTANCE = SCH.SSR_APT_INSTANCE AND SCH1.SSR_APT_ITEM_SEQ = SCH.SSR_APT_ITEM_SEQ AND SCH1.ATTEMPT_NBR = SCH.ATTEMPT_NBR) OR SCH.STRM IS NULL) AND (SCH2.STRM = ( SELECT MAX(SCH1.STRM) FROM PS_SSR_APT_SCHD SCH1 WHERE SCH1.INSTITUTION = SCH2.INSTITUTION AND SCH1.EMPLID = SCH2.EMPLID AND SCH1.SSR_APT_INSTANCE = SCH2.SSR_APT_INSTANCE AND SCH1.SSR_APT_ITEM_SEQ = SCH2.SSR_APT_ITEM_SEQ AND SCH1.ATTEMPT_NBR = SCH2.ATTEMPT_NBR) OR SCH2.STRM IS NULL) AND NOT(SCH.ACAD_YEAR IS NULL AND SCH2.ACAD_YEAR IS NULL AND ITM.SSR_SATISFIED_FL <> 'W') |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL | Employee ID |
2 | INSTITUTION | Character(5) | VARCHAR2(5) NOT NULL | Academic Institution |
3 | SCC_BRINCD_NLD | Character(4) | VARCHAR2(4) NOT NULL | BRINcode |
4 | SSR_BR_ENRL_SQ_NLD | Character(20) | VARCHAR2(20) NOT NULL | 2020-04-15 bug 31180485 - enlarged enrollment seq nbr |
5 | SSR_BR_XRSL_SQ_NLD | Character(20) | VARCHAR2(20) NOT NULL | Exam Result sequence Number |
6 | SSR_BR_RESL_SQ_NLD | Character(20) | VARCHAR2(20) NOT NULL | Result Sequence Number |
7 | SSR_BR_ACD_YR_NLD | Character(4) | VARCHAR2(4) NOT NULL | Exam Regime Year |
8 | SSR_BR_EXA_LVL_NLD | Character(8) | VARCHAR2(8) NOT NULL | Subject Exam level |
9 | SSR_BR_RSN_NP_NLD | Character(1) | VARCHAR2(1) NOT NULL |
Reason for not participating
O=Ontheffing V=Vrijstelling |
10 | SSR_BR_IND_EXC_NLD | Character(1) | VARCHAR2(1) NOT NULL |
Indication Exchange Certificate
Y/N Table Edit |
11 | SSR_BR_COM_GRD_NLD | Character(2) | VARCHAR2(2) NOT NULL | Combination Grade |
12 | SSR_BR_TEST_CD_NLD | Character(4) | VARCHAR2(4) NOT NULL | Test code |
13 | SSR_BR_EGRDTST_NLD | Character(2) | VARCHAR2(2) NOT NULL | End Grade Exam for Test |
14 | SSR_BR_DESC150_NLD | Character(150) | VARCHAR2(150) NOT NULL | Title of Paper |
15 | SSR_BR_PAP_ASS_NLD | Character(1) | VARCHAR2(1) NOT NULL |
Paper Assessment
G=Goed O=Onafgerond V=Voldoende |
16 | SSR_BR_PAP_GRD_NLD | Character(3) | VARCHAR2(3) NOT NULL | Paper Grade |
17 | SSR_BR_SUBJ_CD_NLD | Character(4) | VARCHAR2(4) NOT NULL | Subject code |
18 | SSR_BR_END_GRD_NLD | Character(2) | VARCHAR2(2) NOT NULL | End Exam Grade |
19 | SSR_BR_IND_PAP_NLD | Character(1) | VARCHAR2(1) NOT NULL |
Indication Paper
Y/N Table Edit |
20 | SSR_BR_SUBS_CD_NLD | Character(4) | VARCHAR2(4) NOT NULL | Substituted Subject code |
21 | SSR_BR_SE_GRD_NLD | Character(3) | VARCHAR2(3) NOT NULL | School Exam Grade |
22 | ACAD_CAREER | Character(4) | VARCHAR2(4) NOT NULL |
Academic Career
BAC=Bachelor (NLD) BBL=Vocational Coaching (NLD) BOL=Vocational Training (NLD) BUSN=Graduate Business CNED=Continuing Education CRED=Semester Credit EDU=Education (NLD) EXED=Extended Education GRAD=Graduate LAW=Law MEDS=Medical School NONA=Non Award PGRD=Postgraduate RSCH=Research TECH=Technical UENG=Undergraduate Engineering UGRD=Undergraduate VAVO=Advanced General Educ. (NLD) VETM=Veterinary Medicine |
23 | STDNT_CAR_NBR | Number(3,0) | SMALLINT NOT NULL | Student Career Nbr |