SSR_RI_EPPV_NLD

(SQL View)
Index Back

Current View(edu prov period)


SELECT DISTINCT A.INSTITUTION ,A.SSR_RI_EDU_GOV_NLD ,B.ACAD_ORG ,B.EFFDT ,B.DESCRFORMAL ,CASE WHEN D.LANGUAGE_CD = 'ENG' THEN D.DESCRFORMAL END ,C.SCC_CAF_ATTR_VAL FROM %Table(SSR_RI_EPS_NLD) A JOIN %Table(ACAD_ORG_TBL) B ON A.INSTITUTION = B.INSTITUTION JOIN %Table(SSR_RI_EPWL_NLD) EPW ON B.INSTITUTION = EPW.INSTITUTION AND B.ACAD_ORG = EPW.ACAD_ORG LEFT OUTER JOIN %Table(ACAD_ORG_CAF) C ON A.SCC_CAF_ATTRIB_NM = C.SCC_CAF_ATTRIB_NM AND B.ACAD_ORG = C.ACAD_ORG AND B.EFFDT = C.EFFDT LEFT OUTER JOIN %Table(ACAD_ORG_LANG) D ON B.ACAD_ORG = D.ACAD_ORG AND B.EFFDT = D.EFFDT AND D.LANGUAGE_CD = 'ENG' WHERE %EffdtCheck(SSR_RI_EPS_NLD A_ED,A,%CURRENTDATEIN) AND A.EFFDT = EPW.EFFDT AND B.EFFDT >= ( SELECT MIN(B_ED.EFFDT) FROM PS_ACAD_ORG_TBL B_ED WHERE B_ED.ACAD_ORG = B.ACAD_ORG AND B_ED.EFF_STATUS = 'A') AND B.EFFDT <= ( SELECT MAX(B_ED.EFFDT) FROM PS_ACAD_ORG_TBL B_ED WHERE B_ED.ACAD_ORG = B.ACAD_ORG AND B_ED.effdt <= %CurrentDateIn) AND ( B.EFFDT NOT IN ( SELECT B_IED.EFFDT FROM PS_ACAD_ORG_TBL B_IED WHERE B_IED.ACAD_ORG = B.ACAD_ORG AND B_IED.EFFDT = ( SELECT MAX(B_IED1.EFFDT) FROM PS_ACAD_ORG_TBL B_IED1 WHERE B_IED1.ACAD_ORG = B_IED.ACAD_ORG AND B_IED1.EFFDT > ( SELECT MAX(B_EDX.EFFDT) FROM PS_ACAD_ORG_TBL B_EDX WHERE B_EDX.ACAD_ORG = B.ACAD_ORG AND B_EDX.EFF_STATUS = 'A' AND B_EDX.EFFDT <= %CurrentDateIn ) AND B_IED1.EFF_STATUS = 'I' AND B_IED1.EFFDT <= %CurrentDateIn) ) )

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 INSTITUTION Character(5) VARCHAR2(5) NOT NULL Academic Institution
2 SSR_RI_EDU_GOV_NLD Character(20) VARCHAR2(20) NOT NULL Educational Board Code
3 ACAD_ORG Character(10) VARCHAR2(10) NOT NULL Academic Organization
4 SSR_RI_EPV_ST_DT Date(10) DATE NOT NULL Begin Date
5 SSR_RI_DSC225_NLD Character(225) VARCHAR2(225) NOT NULL Description
6 SSR_RI_DSC225E_NLD Character(225) VARCHAR2(225) NOT NULL Description Language(ENG)
7 SSR_RI_EPV_COD_NLD Character(12) VARCHAR2(12) NOT NULL Educational Provider Code