AV_PLAN_MAJ2_VW(SQL View) |
Index Back |
---|---|
Major2 Acad PlanRetrieves only the plans that are of type major and has the least second value in PLAN_SEQUENCE. This will be the person�s acad plan which is his/her second major. |
SELECT A.EMPLID , A.ACAD_CAREER , A.STDNT_CAR_NBR , A.EFFDT , A.EFFSEQ , A.ACAD_PROG , A.PROG_STATUS , B.ACAD_PLAN , C.ACAD_PLAN_TYPE , C.DESCR FROM PS_ACAD_PROG A , PS_ACAD_PLAN B , PS_ACAD_PLAN_TBL C WHERE A.EFFDT = ( SELECT MAX(A1.EFFDT) FROM PS_ACAD_PROG A1 WHERE A.EMPLID = A1.EMPLID AND A.ACAD_CAREER = A1.ACAD_CAREER AND A.STDNT_CAR_NBR = A1.STDNT_CAR_NBR) AND A.EMPLID = B.EMPLID AND A.ACAD_CAREER = B.ACAD_CAREER AND A.STDNT_CAR_NBR = B.STDNT_CAR_NBR AND A.EFFDT = B.EFFDT AND A.EFFSEQ = B.EFFSEQ AND C.INSTITUTION = A.INSTITUTION AND C.ACAD_PLAN = B.ACAD_PLAN AND C.EFFDT = ( SELECT MAX(C1.EFFDT) FROM PS_ACAD_PLAN_TBL C1 WHERE C.INSTITUTION = C1.INSTITUTION AND C.ACAD_PLAN = C1.ACAD_PLAN AND C1.EFFDT <= B.EFFDT) AND C.EFF_STATUS = 'A' AND C.ACAD_PLAN_TYPE = 'MAJ' AND B.PLAN_SEQUENCE = ( SELECT MIN(B1.PLAN_SEQUENCE) FROM PS_ACAD_PLAN B1 WHERE B.EMPLID = B1.EMPLID AND B.ACAD_CAREER = B1.ACAD_CAREER AND B.STDNT_CAR_NBR = B1.STDNT_CAR_NBR AND B.EFFDT = B1.EFFDT AND B.EFFSEQ = B1.EFFSEQ AND B1.PLAN_SEQUENCE IN ( SELECT B11.PLAN_SEQUENCE FROM PS_ACAD_PLAN B11 WHERE B1.EMPLID = B11.EMPLID AND B1.ACAD_CAREER = B11.ACAD_CAREER AND B1.STDNT_CAR_NBR = B11.STDNT_CAR_NBR AND B1.EFFDT = B11.EFFDT AND B1.EFFSEQ = B11.EFFSEQ AND B11.ACAD_PLAN IN ( SELECT P1.ACAD_PLAN FROM PS_ACAD_PLAN_TBL P1 WHERE P1.ACAD_PLAN_TYPE = 'MAJ') AND B11.PLAN_SEQUENCE > ( SELECT MIN(B111.PLAN_SEQUENCE) FROM PS_ACAD_PLAN B111 WHERE B11.EMPLID = B111.EMPLID AND B11.ACAD_CAREER = B111.ACAD_CAREER AND B11.STDNT_CAR_NBR = B111.STDNT_CAR_NBR AND B11.EFFDT = B111.EFFDT AND B11.EFFSEQ = B111.EFFSEQ AND B111.ACAD_PLAN IN ( SELECT B4.ACAD_PLAN FROM PS_ACAD_PLAN_TBL B4 WHERE B4.ACAD_PLAN_TYPE = 'MAJ')))) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL | Employee ID |
2 | 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 |
3 | STDNT_CAR_NBR | Number(3,0) | SMALLINT NOT NULL | Student Career Nbr |
4 | EFFDT | Date(10) | DATE |
Effective Date
Default Value: %date |
5 | EFFSEQ | Number(3,0) | SMALLINT NOT NULL | Effective Sequence |
6 | ACAD_PROG | Character(5) | VARCHAR2(5) NOT NULL | Academic Program |
7 | PROG_STATUS | Character(4) | VARCHAR2(4) NOT NULL |
Academic Program Status
AC=Active in Program AD=Admitted AP=Applicant CM=Completed Program CN=Cancelled DC=Discontinued DE=Deceased DM=Dismissed LA=Leave of Absence PM=Prematriculant SP=Suspended WT=Waitlisted |
8 | ACAD_PLAN | Character(10) | VARCHAR2(10) NOT NULL | Academic Plan |
9 | ACAD_PLAN_TYPE | Character(3) | VARCHAR2(3) NOT NULL |
Academic Plan Type
CON=Concentration COS=Course of Study HON=Honors MAJ=Major MIN=Minor PRP=Preparation RTC=ROTC SP=Specialization |
10 | AV_MAJOR2_NAME | Character(50) | VARCHAR2(50) NOT NULL | Major2 description |