SAD_SL_CONV_VW1

(SQL View)
Index Back

Studielink Conversion View 1


SELECT DISTINCT AP.INSTITUTION , SP.ACAD_YEAR , AP.ACAD_CAREER , AP.ACAD_PROG , AP.EMPLID , E.NAME FROM PS_ACAD_PROG AP ,PS_SSR_STD_PRG_NLD SP ,PS_SCC_PRI_NAME_VW E WHERE AP.EMPLID=SP.EMPLID AND AP.ACAD_CAREER = SP.ACAD_CAREER AND AP.STDNT_CAR_NBR = SP.STDNT_CAR_NBR AND AP.EFFDT = ( SELECT MAX(EFFDT) FROM PS_ACAD_PROG AP2 WHERE AP2.EMPLID = AP.EMPLID AND AP2.ACAD_CAREER = AP.ACAD_CAREER AND AP2.STDNT_CAR_NBR = AP.STDNT_CAR_NBR AND AP2.EFFDT <= %CurrentDateIn) AND AP.EFFSEQ = ( SELECT MAX(EFFSEQ) FROM PS_ACAD_PROG AP3 WHERE AP3.EMPLID = AP.EMPLID AND AP3.ACAD_CAREER = AP.ACAD_CAREER AND AP3.STDNT_CAR_NBR = AP.STDNT_CAR_NBR AND AP3.EFFDT = AP.EFFDT ) AND AP.PROG_STATUS ='AC' AND SP.EFFDT = ( SELECT MAX(EFFDT) FROM PS_SSR_STD_PRG_NLD SP2 WHERE SP2.EMPLID = SP.EMPLID AND SP2.ACAD_CAREER = SP.ACAD_CAREER AND SP2.STDNT_CAR_NBR = SP.STDNT_CAR_NBR AND SP2.EFFDT <= %CurrentDateIn) AND SP.EFFSEQ = ( SELECT MAX(EFFSEQ) FROM PS_SSR_STD_PRG_NLD SP3 WHERE SP3.EMPLID = SP.EMPLID AND SP3.ACAD_CAREER = SP.ACAD_CAREER AND SP3.STDNT_CAR_NBR = SP.STDNT_CAR_NBR AND SP3.EFFDT = SP.EFFDT ) AND AP.EMPLID = E.EMPLID AND E.EFFDT = ( SELECT MAX(X1.EFFDT) FROM PS_SCC_PRI_NAME_VW X1 WHERE X1.EMPLID = E.EMPLID)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 INSTITUTION Character(5) VARCHAR2(5) NOT NULL Academic Institution
2 ACAD_YEAR Character(4) VARCHAR2(4) NOT NULL Academic Year
3 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
4 ACAD_PROG Character(5) VARCHAR2(5) NOT NULL Academic Program
5 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
6 NAME Character(50) VARCHAR2(50) NOT NULL Name