SSR_BR_ENRVWNLD(SQL View) |
Index Back |
---|---|
Enrollment sequence view/* 2020-04-01 Fix for 30593763 */ /* fix for bug 31180485 - enlargement of enrollment/result sequence numbers */ |
SELECT DEL.INSTITUTION , DEL.SCC_BRINCD_NLD , DEL.EMPLID , DEL.ACAD_CAREER , DEL.STDNT_CAR_NBR , DEL.SSR_BR_ENRL_SQ_NLD , DEL.ENROLLMENT_DT ,' ' FROM PS_SSR_BR_MENR_NLD DEL WHERE DEL.ACAD_CAREER IN ( SELECT DISTINCT ACAD_CAREER FROM PS_SSR_BR_XLSE_NLD XLSE WHERE XLSE.INSTITUTION =DEL.INSTITUTION AND XLSE.SCC_BRINCD_NLD = DEL.SCC_BRINCD_NLD ) UNION ALL SELECT AP.INSTITUTION , HC.SCC_BRINCD_NLD , AP.EMPLID , AP.ACAD_CAREER , AP.STDNT_CAR_NBR , 'OCS' %Concat AP.ADMIT_TERM %Concat 'E' %Concat CASE WHEN %Substring(AP.EMPLID,10,1) > ' ' THEN %Substring(AP.EMPLID,3,8) ELSE CASE WHEN %Substring(AP.EMPLID,9,1) > ' ' THEN %Substring(AP.EMPLID,2,8) ELSE CASE WHEN %Substring(AP.EMPLID,8,1) > ' ' THEN AP.EMPLID ELSE '0' %Concat AP.EMPLID END END END %Concat 'V' %Concat %NumToChar(AP.STDNT_CAR_NBR+100) ,AP.EFFDT ,AP.ACAD_PROG FROM PS_ACAD_PROG AP , PS_SCC_HM_CAMP_NLD HC WHERE AP.ACAD_CAREER IN ( SELECT DISTINCT ACAD_CAREER FROM PS_SSR_BR_XLSE_NLD XLSE WHERE XLSE.INSTITUTION = AP.INSTITUTION AND XLSE.SCC_BRINCD_NLD = HC.SCC_BRINCD_NLD) AND AP.EFFDT = ( SELECT MAX(AP_ED.EFFDT) FROM PS_ACAD_PROG AP_ED WHERE AP.EMPLID = AP_ED.EMPLID AND AP.ACAD_CAREER = AP_ED.ACAD_CAREER AND AP.STDNT_CAR_NBR = AP_ED.STDNT_CAR_NBR) AND AP.EFFSEQ = ( SELECT MAX(AP_ES.EFFSEQ) FROM PS_ACAD_PROG AP_ES WHERE AP.EMPLID = AP_ES.EMPLID AND AP.ACAD_CAREER = AP_ES.ACAD_CAREER AND AP.STDNT_CAR_NBR = AP_ES.STDNT_CAR_NBR AND AP.EFFDT = AP_ES.EFFDT) AND AP.ACAD_PROG = HC.ACAD_PROG AND AP.CAMPUS = HC.CAMPUS AND HC.EFFDT = ( SELECT MAX(HC_ED.EFFDT) FROM PS_SCC_HM_CAMP_NLD HC_ED WHERE HC.ACAD_PROG = HC_ED.ACAD_PROG AND HC_ED.EFFDT <= AP.EFFDT) AND NOT EXISTS ( SELECT 'X' FROM PS_SSR_BR_MENR_NLD DELF WHERE DELF.INSTITUTION = AP.INSTITUTION AND DELF.SCC_BRINCD_NLD = HC.SCC_BRINCD_NLD AND DELF.EMPLID = AP.EMPLID AND DELF.ACAD_CAREER = AP.ACAD_CAREER AND DELF.STDNT_CAR_NBR = AP.STDNT_CAR_NBR) AND AP.ACAD_LOAD_APPR NOT IN ( SELECT DISTINCT ACAD_LOAD_APPR FROM PS_SSR_BR_N_LD_NLD LDEX WHERE LDEX.INSTITUTION = AP.INSTITUTION AND LDEX.SCC_BRINCD_NLD = HC.SCC_BRINCD_NLD) AND AP.ACAD_PROG NOT IN (%Sql(SSR_BR_GET_ACPR_NOT_SEND_SQL, AP.INSTITUTION, HC.SCC_BRINCD_NLD )) |
# | 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 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL | Employee ID |
4 | 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 |
5 | STDNT_CAR_NBR | Number(3,0) | SMALLINT NOT NULL | Student Career Nbr |
6 | SSR_BR_ENRL_SQ_NLD | Character(20) | VARCHAR2(20) NOT NULL | 2020-04-15 bug 31180485 - enlarged enrollment seq nbr |
7 | EFFDT | Date(10) | DATE |
Effective Date
Default Value: %date |
8 | ACAD_PROG | Character(5) | VARCHAR2(5) NOT NULL | Academic Program |