AV_PLAN_MIN1_VW

(SQL View)
Index Back

Minor 1 Acad Plan

Retrieves only the plans that are of type minor and has the least value in PLAN_SEQUENCE. This will be the person�s acad plan which is his/her first minor.

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 = 'MIN' 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.ACAD_PLAN IN ( SELECT D.ACAD_PLAN FROM PS_ACAD_PLAN_TBL D WHERE D.ACAD_PLAN_TYPE = 'MIN' ) )

  • Related Language Record: AV_PLAN_MIN1_LN
  • # 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_MINOR1_NAME Character(50) VARCHAR2(50) NOT NULL Minor1 description