STUTRM_INS_SEC

(SQL View)
Index Back

Stdnt Trm Srch - Ins Security

This view is the institution-level security version of STDNT_TERM_SRCH. It is used to search for the student who has been term activated. The PeopleCode contained on this view is important for any other view which is based on this one - the searching/formatting for names and setting the carry id is done with this code..

SELECT B.OPRCLASS ,A.EMPLID ,A.ACAD_CAREER ,A.INSTITUTION ,A.STRM ,S.OPRID ,C.DESCRSHORT ,B.NAME ,B.SEX ,B.BIRTHDATE ,B.BIRTHDATE_MSK ,B.CAMPUS_ID ,B.NATIONAL_ID ,B.NATIONAL_ID_MSK ,B.NID_COUNTRY ,B.NATIONAL_ID_TYPE ,B.NID_DESCRSHORT ,B.LAST_NAME_SRCH ,B.FIRST_NAME_SRCH ,A.STRM FROM PS_STDNT_CAR_TERM A , PS_PEOPLE_SRCH B , PS_TERM_VAL_TBL C , PS_ACAD_PROG PR , PS_SCRTY_TBL_INST S WHERE A.EMPLID = B.EMPLID AND A.STRM = C.STRM AND A.EMPLID = PR.EMPLID AND A.ACAD_CAREER = PR.ACAD_CAREER AND A.INSTITUTION = PR.INSTITUTION AND PR.EFFDT = ( SELECT MAX(F.EFFDT) FROM PS_ACAD_PROG F WHERE F.INSTITUTION = PR.INSTITUTION AND F.EMPLID = PR.EMPLID AND F.ACAD_CAREER = PR.ACAD_CAREER AND F.STDNT_CAR_NBR = PR.STDNT_CAR_NBR AND F.EFFDT <= %CurrentDateIn) AND PR.EFFSEQ = ( SELECT MAX(H.EFFSEQ) FROM PS_ACAD_PROG H WHERE H.INSTITUTION = PR.INSTITUTION AND H.EMPLID = PR.EMPLID AND H.ACAD_CAREER = PR.ACAD_CAREER AND H.STDNT_CAR_NBR = PR.STDNT_CAR_NBR AND H.EFFDT = PR.EFFDT) AND PR.INSTITUTION = S.INSTITUTION

  • Related Language Record: STUTRMINSSECLNG
  • Parent record: ACAD_PROG
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 OPRCLASS Character(30) VARCHAR2(30) NOT NULL Operator Class
    2 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
    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

    Default Value: OPR_DEF_TBL_CS.ACAD_CAREER

    4 INSTITUTION Character(5) VARCHAR2(5) NOT NULL Academic Institution

    Default Value: OPR_DEF_TBL_CS.INSTITUTION

    Prompt Table: INSTITUTION_TBL

    5 STRM Character(4) VARCHAR2(4) NOT NULL Term

    Default Value: OPR_DEF_TBL_CS.STRM

    Prompt Table: TERM_TBL

    6 OPRID Character(30) VARCHAR2(30) NOT NULL A user's ID (see PSOPRDEFN).
    7 DESCRSHORT Character(10) VARCHAR2(10) NOT NULL Short Description
    8 NAME Character(50) VARCHAR2(50) NOT NULL Name
    9 SEX Character(1) VARCHAR2(1) NOT NULL Gender
    F=Female
    M=Male
    U=Unknown
    X=Indeterminate/Intersex/Unspec
    10 BIRTHDATE Date(10) DATE Date of Birth
    11 BIRTHDATE_MSK Character(10) VARCHAR2(10) NOT NULL Date of Birth
    12 CAMPUS_ID Character(16) VARCHAR2(16) NOT NULL Campus ID
    13 NATIONAL_ID Character(20) VARCHAR2(20) NOT NULL National ID
    14 NATIONAL_ID_MSK Character(20) VARCHAR2(20) NOT NULL National ID
    15 NID_COUNTRY Character(3) VARCHAR2(3) NOT NULL National ID Country
    16 NATIONAL_ID_TYPE Character(6) VARCHAR2(6) NOT NULL National ID Type

    Prompt Table: HCR_NID_TYP_I
    Set Control Field: NID_COUNTRY

    17 NID_DESCRSHORT Character(10) VARCHAR2(10) NOT NULL NID Short Description
    18 LAST_NAME_SRCH Character(30) VARCHAR2(30) NOT NULL Last Name
    19 FIRST_NAME_SRCH Character(30) VARCHAR2(30) NOT NULL First Name
    20 TERM_ALT Character(4) VARCHAR2(4) NOT NULL Term Alternate Key

    Prompt Table: TERM_VAL_TBL