SAD_BR_M320_NLD

(SQL View)
Index Back

SELECT ES.INSTITUTION , ES.SCC_BRINCD_NLD , ES.SAD_BR_EDU_SEC_NLD , ES.EMPLID , ES.SAD_BR_ENRL_SQ_NLD , %Coalesce ( (SELECT TT.TERM_BEGIN_DT FROM PS_TERM_TBL TT WHERE TT.STRM = AP.ADMIT_TERM AND TT.ACAD_CAREER = AP.ACAD_CAREER AND TT.INSTITUTION = AP.INSTITUTION and AP.EFFDT < TT.TERM_BEGIN_DT) , AP.EFFDT) AS ENROLLMENT_DT , CASE WHEN (INST.SAD_BR_TRM_END_NLD) = ('O') THEN ( SELECT OWO.END_DATE FROM PS_SAD_STD_CON_NLD OWO WHERE OWO.INSTITUTION = AP.INSTITUTION AND OWO.ACAD_CAREER = AP.ACAD_CAREER AND OWO.STDNT_CAR_NBR = AP.STDNT_CAR_NBR AND OWO.EMPLID = AP.EMPLID AND OWO.STATUS = 'A' AND OWO.SAD_CONTRACTNR_NLD = ( SELECT MAX(OWO_ED.SAD_CONTRACTNR_NLD) FROM PS_SAD_STD_CON_NLD OWO_ED WHERE OWO.INSTITUTION = OWO_ED.INSTITUTION AND OWO.EMPLID = OWO_ED.EMPLID AND OWO.ACAD_CAREER = OWO_ED.ACAD_CAREER AND OWO.STDNT_CAR_NBR = OWO_ED.STDNT_CAR_NBR AND OWO.STATUS = OWO_ED.STATUS)) ELSE CASE WHEN (INST.SAD_BR_TRM_END_NLD) = ('E') THEN ( SELECT T.term_end_dt FROM ps_term_tbl T WHERE T.institution = AP.INSTITUTION AND T.acad_career = AP.ACAD_CAREER AND T.strm = AP.EXP_GRAD_TERM ) END END AS SAD_BR_LEAVEDT_NLD , (%Sql(SAD_BR_ENDDATE_SQL, ES.INSTITUTION, ES.SCC_BRINCD_NLD, ES.SAD_BR_EDU_SEC_NLD, AP2.PROG_ACTION, AP2.PROG_REASON,AP2.EFFDT)) AS SAD_BR_ENR_END_DT , (%Sql(SAD_BR_GET_HIGH_PRIO_SQL, AP.EMPLID)) AS SAD_BR_PRIO_ED_NLD , CASE WHEN (INST.SAD_BR_HAN_SEL_NLD) = 'A' THEN CASE WHEN (%Sql(SAD_BR_HAN_SEL_ST_ATTR_SQL, AP.EMPLID, AP.ACAD_CAREER, AP.STDNT_CAR_NBR, AP.INSTITUTION, ES.SCC_BRINCD_NLD, ES.SAD_BR_EDU_SEC_NLD)) IS NULL THEN 'N' ELSE 'Y' END ELSE CASE WHEN (INST.SAD_BR_HAN_SEL_NLD) = 'D' THEN CASE WHEN (%Sql(SAD_BR_HAN_SEL_SI_SQL, AP.INSTITUTION, ES.SCC_BRINCD_NLD, ES.SAD_BR_EDU_SEC_NLD)) IS NULL THEN 'N' ELSE 'Y' END ELSE CASE WHEN (INST.SAD_BR_HAN_SEL_NLD) = 'T' THEN CASE WHEN (%Sql(SAD_BR_HAN_SEL_SG_SQL, AP.EMPLID, AP.INSTITUTION, ES.SCC_BRINCD_NLD, ES.SAD_BR_EDU_SEC_NLD )) IS NULL THEN 'N' ELSE 'Y' END END END END AS SAD_BR_DISABLE_NLD , (%Sql(SAD_BR_GET_ENRL_END_RSN_SQL, ES.INSTITUTION, ES.SCC_BRINCD_NLD, ES.SAD_BR_EDU_SEC_NLD, AP2.PROG_ACTION, AP2.PROG_REASON)) AS SAD_BR_ENRLEND_NLD , ES.ACAD_CAREER , ES.STDNT_CAR_NBR FROM PS_SAD_BR_ENRSQNLD ES JOIN PS_ACAD_PROG AP ON ES.INSTITUTION = AP.INSTITUTION AND ES.EMPLID = AP.EMPLID AND ES.ACAD_CAREER =AP.ACAD_CAREER AND ES.STDNT_CAR_NBR = AP.STDNT_CAR_NBR AND AP.PROG_ACTION IN (%Sql(SAD_BR_GET_PR_AC_ENR_SQL, ES.INSTITUTION, ES.SCC_BRINCD_NLD, ES.SAD_BR_EDU_SEC_NLD, AP.EFFDT)) JOIN PS_ACAD_PROG_TBL APT ON AP.ACAD_PROG = APT.ACAD_PROG JOIN PS_SSR_STD_PRG_NLD SP ON AP.EMPLID = SP.EMPLID AND AP.EFFDT = SP.EFFDT AND AP.EFFSEQ = SP.EFFSEQ AND AP.ACAD_CAREER = SP.ACAD_CAREER AND AP.STDNT_CAR_NBR = SP.STDNT_CAR_NBR AND SP.SAD_BR_EX_BRON_NLD <> 'Y' JOIN PS_SAD_BR_BO_NLD INST ON INST.INSTITUTION = ES.INSTITUTION AND INST.SCC_BRINCD_NLD = ES.SCC_BRINCD_NLD LEFT OUTER JOIN PS_ACAD_PROG AP2 ON AP2.EMPLID = AP.EMPLID AND AP2.ACAD_CAREER = AP.ACAD_CAREER AND AP2.STDNT_CAR_NBR = AP.STDNT_CAR_NBR AND AP2.PROG_ACTION IN ( SELECT DISTINCT PROG_ACTION FROM PS_SAD_BR_ENRLEND) WHERE (%Sql(SAD_BR_GET_NBR_ACPR_TOSEND_SQL, ES.INSTITUTION, ES.SCC_BRINCD_NLD, ES.SAD_BR_EDU_SEC_NLD, ES.EMPLID, ES.ACAD_CAREER, ES.STDNT_CAR_NBR)) > 0 AND APT.EFFDT = ( SELECT MAX(APT_ED.EFFDT) FROM PS_ACAD_PROG_TBL APT_ED WHERE APT_ED.ACAD_PROG = APT.ACAD_PROG AND APT_ED.EFFDT <= AP.EFFDT) AND INST.EFFDT = ( SELECT MAX(INST_ED.EFFDT) FROM PS_SAD_BR_BO_NLD INST_ED WHERE INST.INSTITUTION = INST_ED.INSTITUTION AND INST.SCC_BRINCD_NLD = INST_ED.SCC_BRINCD_NLD AND INST_ED.EFFDT <= AP.EFFDT)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 INSTITUTION Character(5) VARCHAR2(5) NOT NULL Academic Institution
2 SCC_BRINCD_NLD Character(4) VARCHAR2(4) NOT NULL BRINcode
3 SAD_BR_EDU_SEC_NLD Character(2) VARCHAR2(2) NOT NULL Educational Sector
BO=Professional Education
ED=Education
VA=VAVO
4 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
5 SAD_BR_ENRL_SQ_NLD Character(3) VARCHAR2(3) NOT NULL Enrollment Sequence number
6 ENROLLMENT_DT Date(10) DATE Original Enrollment Date
7 SAD_BR_LEAVEDT_NLD Date(10) DATE Leave Date
8 SAD_BR_ENR_END_DT Date(10) DATE Enrollment End Date
9 SAD_BR_PRIO_ED_NLD Character(2) VARCHAR2(2) NOT NULL Highest Prior Education
01=No completed primary education
02=Primary Education
03=Basic Year AVO/VBO/VMBO
04=VMBO (Exl. Theoretical Educ.)
05=VMBO Theoretical Education
06=HAVO
07=VWO
08=MBO level 1-2
09=MBO level 3-4
10=Propedeuse HBO
11=HBO
12=Colloquium Doctrum
13=Disposal Admission WO
14=Propedeuse WO
15=Bachelor WO
16=Master WO
10 SAD_BR_DISABLE_NLD Character(1) VARCHAR2(1) NOT NULL A flag that indicates whether or not (Y or N) a dependent is a disabled.
11 SAD_BR_ENRLEND_NLD Character(2) VARCHAR2(2) NOT NULL Enrollment End Reason
01=1. No Personal Reason
02=2. Personal Reasons
03=3. Institution Based
04=4. Program and Career based
05=5. Job Market/External
06=6. No diploma needed
07=7. Unknown
08=8. No End Reason
12 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
13 STDNT_CAR_NBR Number(3,0) SMALLINT NOT NULL Student Career Nbr