SSR_BR_RPVV_NLD

(SQL View)
Index Back

Results crses/cert cur vw 7

Results courses per certificate Current View 7 - Results courses per certificate current view

SELECT DISTINCT ES.EMPLID , ES.INSTITUTION , ES.SCC_BRINCD_NLD , ES.SSR_BR_ENRL_SQ_NLD , ES.SSR_BR_ENRL_SQ_NLD , 'Y' AS SSR_BR_OUTCIND_NLD , ITMVWS.SCC_CAF_ATTR_VAL AS SSR_BR_RESL_SQ_NLD , ES.ACAD_CAREER ,ES.STDNT_CAR_NBR FROM PS_SSR_BR_ENVVWNLD ES JOIN PS_SSR_APT_HDR APT ON APT.INSTITUTION = ES.INSTITUTION AND APT.EMPLID = ES.EMPLID AND APT.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 JOIN PS_SSR_APT_ATT ATT ON ITM.INSTITUTION = ATT.INSTITUTION AND ATT.SSR_INCL_IN_CALC = 'Y' AND ATT.SSR_ATT_STAT >='30' 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 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.SSR_RSLT_OUTCOME = '40' 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 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_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_AIR_ADD ITMVWS ON ITM.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) JOIN PS_SSR_BR_AITV_NLD AITV ON AITV.INSTITUTION = ES.INSTITUTION AND AITV.SCC_BRINCD_NLD = ES.SCC_BRINCD_NLD AND AITV.SSR_ITEM_TYPE = ITM.SSR_ITEM_TYPE 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) AND ((AITV.SSR_BR_TSTTYPV_NLD = 'PG' AND (%Sql(SSR_BR_VA_GET_CAF_AIRADD_NLD, ES.INSTITUTION, ITM.SSR_ITEM_ID,'NLD_VA_SUBJ_CD' )) = ENRV.SSR_BR_LOB_PAP_NLD) OR (AITV.SSR_BR_TSTTYPV_NLD = 'CT' AND (%Sql(SSR_BR_VA_TEST_CD_NLD, ES.INSTITUTION, ES.SCC_BRINCD_NLD, ITM.SSR_ITEM_ID, 'NLD_VA_SUBJ_CD', ES.EFFDT_VAR, ENRV.EFFDT)) IS NOT NULL) OR (AITV.SSR_BR_TSTTYPV_NLD = 'EN' AND ((%Sql(SSR_BR_VA_GET_ITMEN_AIRADD_NLD, ES.INSTITUTION,ES.SCC_BRINCD_NLD,ES.EMPLID,ES.SSR_APT_INSTANCE, ENRV.EFFDT,ES.EFFDT_VAR,(%Sql(SSR_BR_VA_GET_CAF_AIRADD_NLD, ES.INSTITUTION, ITM.SSR_ITEM_ID,'NLD_VA_LEVEL')),ITMVWS.SCC_CAF_ATTR_VAL)) IS NOT NULL ) )) JOIN PS_SSR_BR_ROVV_NLD ROVV ON ES.EMPLID = ROVV.EMPLID AND ES.INSTITUTION = ROVV.INSTITUTION AND ES.SCC_BRINCD_NLD = ROVV.SCC_BRINCD_NLD AND ES.SSR_BR_ENRL_SQ_NLD = ROVV.SSR_BR_ENRL_SQ_NLD AND ES.SSR_BR_ENRL_SQ_NLD = ROVV.SSR_BR_XRSL_SQ_NLD AND 'Y' = ROVV.SSR_BR_OUTCIND_NLD WHERE 1 = CASE WHEN (ROVV.SSR_BR_OUTCOM_NLD = 'G' OR (ROVV.SSR_BR_OUTCOM_NLD IN ('D' ,'A') AND (RSLT.SSR_PE_RSN_CD = ENRV.SSR_BR_ERSN_CD_NLD ))) THEN '0' ELSE '1' END AND ES.PROG_ACTION IN (%Sql(SSR_BR_VA_OUTCOME_PRGACT_SQL, ES.INSTITUTION, ES.SCC_BRINCD_NLD)) 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 ATT.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_RSLT_OUTCOME = '40') OR RSLT.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 1 = (CASE WHEN (%Sql(SSR_BR_VA_EX_RES_PGAC_NLD, ES.INSTITUTION, ES.SCC_BRINCD_NLD, ES.EFFDT_VAR, ES.PROG_ACTION, ES.PROG_REASON)) IS NOT NULL THEN '0' ELSE '1' END)

# 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_OUTCIND_NLD Character(1) VARCHAR2(1) NOT NULL Outcome indicator only used as a static key in records MROV, MRPV, MRLV and MRGV records in VAVO

Default Value: Y

7 SSR_BR_RESL_SQ_NLD Character(20) VARCHAR2(20) NOT NULL Result Sequence Number
8 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
9 STDNT_CAR_NBR Number(3,0) SMALLINT NOT NULL Student Career Nbr