SAD_PLNSBPLN_VW(SQL View) |
Index Back |
---|---|
Plan - Sub Plan ViewReturns Pland and Sub-Plan information of a applicant joined with the security views |
SELECT A.EMPLID ,B.INSTITUTION , A.ACAD_CAREER , B.ADM_APPL_NBR , B.ACAD_PROG , A.ACAD_PLAN , ASP.ACAD_SUB_PLAN , D.OPRID FROM PS_ADM_APPL_PROG B , PS_SCRTY_TBL_PLAN D , PS_ADM_APPL_PLAN A LEFT OUTER JOIN PS_SAD_ED_SBPLN_VW ASP ON (A.EMPLID = ASP.EMPLID AND A.ACAD_CAREER = ASP.ACAD_CAREER AND A.ADM_APPL_NBR = ASP.ADM_APPL_NBR AND A.STDNT_CAR_NBR = ASP.STDNT_CAR_NBR AND A.ACAD_PLAN = ASP.ACAD_PLAN AND A.APPL_PROG_NBR = ASP.APPL_PROG_NBR) WHERE A.EMPLID = B.EMPLID AND A.ACAD_CAREER = B.ACAD_CAREER AND A.ADM_APPL_NBR = B.ADM_APPL_NBR AND A.STDNT_CAR_NBR = B.STDNT_CAR_NBR AND A.APPL_PROG_NBR = B.APPL_PROG_NBR AND D.INSTITUTION = B.INSTITUTION AND (A.ACAD_PLAN = D.ACAD_PLAN OR D.ACAD_PLAN = 'ALL') AND NOT EXISTS ( SELECT 'X' FROM PS_SCRTY_TBL_PLAN E WHERE E.ACCESS_CD = 'N' AND E.OPRID = D.OPRID AND E.INSTITUTION = D.INSTITUTION AND E.ACAD_PLAN = D.ACAD_PLAN) AND B.EFFDT = ( SELECT MAX(B1.EFFDT) FROM PS_ADM_APPL_PROG B1 WHERE B.ACAD_CAREER = B1.ACAD_CAREER AND B.ACAD_PROG = B1.ACAD_PROG AND B.ADM_APPL_NBR = B1.ADM_APPL_NBR AND B.APPL_PROG_NBR = B1.APPL_PROG_NBR AND B.STDNT_CAR_NBR = B1.STDNT_CAR_NBR AND B.INSTITUTION = B1.INSTITUTION AND B1.EFFDT <= %CurrentDateIn) AND B.EFFSEQ = ( SELECT MAX(B2.EFFSEQ) FROM PS_ADM_APPL_PROG B2 WHERE B.ACAD_CAREER = B2.ACAD_CAREER AND B.ACAD_PROG = B2.ACAD_PROG AND B.APPL_PROG_NBR = B2.APPL_PROG_NBR AND B.STDNT_CAR_NBR = B2.STDNT_CAR_NBR AND B.INSTITUTION = B2.INSTITUTION AND B2.EFFDT = B.EFFDT) AND A.EFFDT = ( SELECT MAX(A1.EFFDT) FROM PS_ADM_APPL_PLAN A1 WHERE A.ACAD_CAREER = A1.ACAD_CAREER AND A.ACAD_PLAN = A1.ACAD_PLAN AND A.ADM_APPL_NBR = A1.ADM_APPL_NBR AND A1.EFFDT <= %CurrentDateIn) AND A.EFFSEQ = ( SELECT MAX(A2.EFFSEQ) FROM PS_ADM_APPL_PLAN A2 WHERE A.ACAD_CAREER = A2.ACAD_CAREER AND A.ACAD_PLAN = A2.ACAD_PLAN AND A2.EFFDT = A.EFFDT) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL | Employee ID |
2 | INSTITUTION | Character(5) | VARCHAR2(5) NOT NULL | Academic Institution |
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 | ADM_APPL_NBR | Character(8) | VARCHAR2(8) NOT NULL | Application Nbr |
5 | ACAD_PROG | Character(5) | VARCHAR2(5) NOT NULL | Academic Program |
6 | ACAD_PLAN | Character(10) | VARCHAR2(10) NOT NULL | Academic Plan |
7 | ACAD_SUB_PLAN | Character(10) | VARCHAR2(10) NOT NULL | Academic Sub-Plan |
8 | OPRID | Character(30) | VARCHAR2(30) NOT NULL | A user's ID (see PSOPRDEFN). |