SSR_RI_OPRV_NLD

(SQL View)
Index Back

Current View (base off. Progr)

/* 2020-07-23: fix for Bug-ID: 31865490 - RIOv2 */ RIO 2.0 Added a new field ACAD_PROG /* 2020-12-23: fix for Bug-ID: 32223146 - WHEN AN ACADEMIC PROGRAM CHANGES/ADDS CAMPUS, INCORRECT DISPLAY IN RIO */ /* 2021-01-07: Fix for Bug 32187682 - ENH: RIO/ BRON issue for delivery of changed educ provider on offered prog/enrol */ /* 2021-10-06: fix for Bug-ID: 32929597 - RIOv3 */

SELECT DISTINCT A.INSTITUTION , B.SSR_RIO_PRG_UUID , CASE WHEN G.SCC_CAF_ATTR_VAL IS NOT NULL THEN G.SCC_CAF_ATTR_VAL ELSE F.SCC_CAF_ATTR_VAL END AS SSR_RI_EPV_COD_NLD , CASE WHEN LENGTH(RTRIM(LTRIM(J.ESTABID))) = 7 THEN RTRIM(LTRIM(J.ESTABID)) END AS SSR_RI_OLO_COD_NLD , (%Sql(SSR_RI_OPR_BEGIN_DT_NLD, B.INSTITUTION, B.ACAD_PROG,B.CAMPUS,B.ACAD_LOAD_APPR,B.ACAD_ORG)) AS BEGIN_DT , CASE WHEN (%Sql(SSR_RI_OPR_FRST_TRMBEGINDT_NLD, C.INSTITUTION, C.ACAD_PROG)) IS NOT NULL THEN CASE WHEN (%Sql(SSR_RI_OPR_FRST_TRMBEGINDT_NLD, C.INSTITUTION, C.ACAD_PROG)) > (%Sql(SSR_RI_OPR_BEGIN_DT_NLD, B.INSTITUTION, B.ACAD_PROG,B.CAMPUS,B.ACAD_LOAD_APPR,B.ACAD_ORG)) THEN (%Sql(SSR_RI_OPR_FRST_TRMBEGINDT_NLD, C.INSTITUTION, C.ACAD_PROG)) ELSE (%Sql(SSR_RI_OPR_BEGIN_DT_NLD, B.INSTITUTION, B.ACAD_PROG,B.CAMPUS,B.ACAD_LOAD_APPR,B.ACAD_ORG)) END ELSE (%Sql(SSR_RI_OPR_BEGIN_DT_NLD, B.INSTITUTION, B.ACAD_PROG,B.CAMPUS,B.ACAD_LOAD_APPR,B.ACAD_ORG)) END AS SSR_RI_FRST_DT_NLD ,CASE WHEN (((%Sql(SSR_RI_OPR_END_DT_NOUUID_NLD, B.INSTITUTION, B.ACAD_PROG, B.CAMPUS, B.ACAD_LOAD_APPR, C2.EFFDT,B.ACAD_ORG)) IS NOT NULL) AND CASE WHEN C2.EFF_STATUS = 'I' THEN C2.EFFDT END IS NOT NULL) THEN CASE WHEN C2.EFFDT > (%Sql(SSR_RI_OPR_END_DT_NOUUID_NLD, B.INSTITUTION, B.ACAD_PROG, B.CAMPUS, B.ACAD_LOAD_APPR, C2.EFFDT,B.ACAD_ORG)) THEN (%Sql(SSR_RI_OPR_END_DT_NOUUID_NLD, B.INSTITUTION, B.ACAD_PROG, B.CAMPUS, B.ACAD_LOAD_APPR, C2.EFFDT,B.ACAD_ORG)) ELSE C2.EFFDT END ELSE CASE WHEN (%Sql(SSR_RI_OPR_END_DT_NOUUID_NLD, B.INSTITUTION, B.ACAD_PROG, B.CAMPUS, B.ACAD_LOAD_APPR, C2.EFFDT,B.ACAD_ORG)) IS NOT NULL THEN (%Sql(SSR_RI_OPR_END_DT_NOUUID_NLD, B.INSTITUTION, B.ACAD_PROG, B.CAMPUS, B.ACAD_LOAD_APPR, C2.EFFDT,B.ACAD_ORG)) ELSE (CASE WHEN (CASE WHEN C2.EFF_STATUS = 'I' THEN C2.EFFDT END IS NOT NULL) THEN C2.EFFDT END) END END AS END_DT , CASE WHEN C2.SCC_HEGIS_TYPE_NLD = 'P' THEN (%Sql(SSR_BR_LOOKUP_CAR_LD_SQL, A.INSTITUTION, D.SCC_BRINCD_NLD, B.ACAD_LOAD_APPR, %CURRENTDATEIN)) ELSE ' ' END AS SSR_BR_CAREER_NLD , %Coalesce((%Sql(SSR_RI_SETUP_ACAD_LVL_SQL, A.INSTITUTION, D.SCC_BRINCD_NLD, E.ACAD_PROG, %CURRENTDATEIN)),'U') AS SSR_BR_LVL_NLD ,E.SSR_ADM_REQ_NLD AS SSR_RI_ADM_REQ_NLD ,L.SSR_LIM_ACC_NLD AS SSR_RI_LIM_ACC_NLD , CASE WHEN C2.SCC_HEGIS_TYPE_NLD IS NOT NULL THEN A.SSR_RI_EDU_REG_NLD ELSE ' ' END AS SSR_RI_EDU_REG_NLD ,C2.HEGIS_CODE ,L.SSR_RI_EUN_COD_NLD AS SSR_RI_EUN_COD_NLD ,L.SSR_PROG_NORM_NLD AS SSR_RI_PRG_NRM_NLD ,C2.PROG_NORM_COMPLTN AS SSR_RI_PRN_CMP_NLD ,B.ACAD_PROG , C2.SCC_HEGIS_TYPE_NLD FROM PS_SSR_RI_EPS_NLD A , PS_SSR_RIO_PRG_NLD B , (PS_ACAD_PROG_TBL C LEFT OUTER JOIN PS_SSR_PRG_NRM_NLD L ON C.INSTITUTION = L.INSTITUTION AND C.ACAD_PROG = L.ACAD_PROG ) , PS_SCC_HM_CAMP_NLD D LEFT OUTER JOIN PS_ACAD_ORG_CAF G ON G.ACAD_ORG = D.ACAD_ORG , PS_SCC_CMPLOAD_NLD E LEFT OUTER JOIN PS_SSR_RI_PROG_VW C2 ON E.INSTITUTION = C2.INSTITUTION AND E.ACAD_PROG = C2.ACAD_PROG LEFT OUTER JOIN PS_ACAD_ORG_CAF F ON F.ACAD_ORG = C2.ACAD_ORG , PS_CAMPUS_TBL H , PS_SET_CNTRL_REC I , PS_LOCATION_TBL J WHERE A.EFFDT = ( SELECT MAX(A_ED.EFFDT) FROM PS_SSR_RI_EPS_NLD A_ED WHERE A.INSTITUTION = A_ED.INSTITUTION AND A_ED.EFFDT <= %CurrentDateIn) AND A.INSTITUTION = B.INSTITUTION AND B.INSTITUTION = C.INSTITUTION AND B.ACAD_PROG = C.ACAD_PROG AND C.EFFDT <= %CurrentDateIn AND C.INSTITUTION = D.INSTITUTION AND C.ACAD_PROG = D.ACAD_PROG AND B.CAMPUS = D.CAMPUS AND D.EFFDT = C.EFFDT AND B.INSTITUTION = E.INSTITUTION AND B.ACAD_PROG = E.ACAD_PROG AND B.CAMPUS = E.CAMPUS AND B.ACAD_LOAD_APPR = E.ACAD_LOAD_APPR AND B.ACAD_ORG = D.ACAD_ORG AND E.EFFDT = C.EFFDT AND (A.SCC_CAF_ATTRIB_NM = F.SCC_CAF_ATTRIB_NM OR F.SCC_CAF_ATTRIB_NM IS NULL) AND (F.EFFDT = ( SELECT MAX(F_ED.EFFDT) FROM PS_ACAD_ORG_CAF F_ED WHERE F.ACAD_ORG = F_ED.ACAD_ORG AND F_ED.EFFDT <= C2.EFFDT) OR F.EFFDT IS NULL) AND (A.SCC_CAF_ATTRIB_NM = G.SCC_CAF_ATTRIB_NM OR G.SCC_CAF_ATTRIB_NM IS NULL) AND (G.EFFDT = ( SELECT MAX(G_ED.EFFDT) FROM PS_ACAD_ORG_CAF G_ED WHERE G.ACAD_ORG = G_ED.ACAD_ORG AND G_ED.EFFDT <= C2.EFFDT) OR G.EFFDT IS NULL) AND H.INSTITUTION = B.INSTITUTION AND H.CAMPUS = B.CAMPUS AND H.EFFDT = ( SELECT MAX(H_ED.EFFDT) FROM PS_CAMPUS_TBL H_ED WHERE H.INSTITUTION = H_ED.INSTITUTION AND H.CAMPUS = H_ED.CAMPUS AND H_ED.EFFDT <= C2.EFFDT) AND I.SETCNTRLVALUE = A.INSTITUTION AND I.RECNAME = 'LOCATION_TBL' AND J.SETID = I.SETID AND J.LOCATION = H.LOCATION AND (J.EFFDT = ( SELECT MAX(J_ED.EFFDT) FROM PS_LOCATION_TBL J_ED WHERE J.SETID = J_ED.SETID AND J.LOCATION = J_ED.LOCATION AND J_ED.EFFDT <= C2.EFFDT) ) AND (L.EFFDT = C2.EFFDT OR L.EFFDT IS NULL) AND C2.ACAD_CAREER IN ( SELECT DISTINCT XLSE.ACAD_CAREER FROM PS_SSR_BR_XLSE_NLD XLSE WHERE XLSE.INSTITUTION = A.INSTITUTION AND %EffdtCheck(SSR_BR_XLSE_NLD XLSE_ED, XLSE, C2.EFFDT) ) AND E.SSR_RIO_YN_NLD = 'Y' AND D.SCC_BRINCD_NLD <> ' ' AND (C2.HEGIS_CODE > ' ' OR L.SSR_RI_EUN_COD_NLD > ' ')

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 INSTITUTION Character(5) VARCHAR2(5) NOT NULL Academic Institution
2 SSR_RIO_PRG_UUID Character(50) VARCHAR2(50) NOT NULL Program UUID
3 SSR_RI_EPV_COD_NLD Character(12) VARCHAR2(12) NOT NULL Educational Provider Code
4 SSR_RI_OLO_COD_NLD Character(12) VARCHAR2(12) NOT NULL RIO Establishment ID
5 BEGIN_DT Date(10) DATE Begin Date
6 SSR_RI_FRST_DT_NLD Date(10) DATE First Inflow Date
7 END_DT Date(10) DATE end date
8 SSR_BR_CAREER_NLD Character(3) VARCHAR2(3) NOT NULL 15-04-2020 changes for bug 30723216
BBL=BBL
BLT=BBL_DT
BOL=BOL
BOT=BOL_DT
CBL=CBL
CBT=CBL_DT
CLD=COL_DT
COL=COL
EX=EX
ODT=ODT
OVO=Other Education
9 SSR_BR_LVL_NLD Character(1) VARCHAR2(1) NOT NULL /* 2021-10-13: fix for Bug-ID: 32929597 - RIOv3 */ Additional translate value U.
1=MBO-1
2=MBO-2
3=MBO-3
4=MBO-4
U=Undetermined
10 SSR_RI_ADM_REQ_NLD Character(1) VARCHAR2(1) NOT NULL Admissions requirements
11 SSR_RI_LIM_ACC_NLD Character(1) VARCHAR2(1) NOT NULL Limited Access
12 SSR_RI_EDU_REG_NLD Character(8) VARCHAR2(8) NOT NULL Educational Register
13 HEGIS_CODE Character(8) VARCHAR2(8) NOT NULL HEGIS Code
14 SSR_RI_EUN_COD_NLD Character(12) VARCHAR2(12) NOT NULL RIO STAP Educational Unit Code
15 SSR_RI_PRG_NRM_NLD Character(1) VARCHAR2(1) NOT NULL Program Norm Units Type /* 2021-10-13: fix for Bug-ID: 32929597 - RIOv3 */ Additional translate value J.
D=Days
H=Hours
J=Years
M=Months
W=Weeks
Y=Years
16 SSR_RI_PRN_CMP_NLD Number(3,0) SMALLINT NOT NULL IPEDS Normal Completion
17 ACAD_PROG Character(5) VARCHAR2(5) NOT NULL Academic Program
18 SCC_HEGIS_TYPE_NLD Character(1) VARCHAR2(1) NOT NULL Hegis Code Type
C=Course
E=Elective
K=Elective
P=Program
T=Testimony