STUCAR_PLN_SEC

(SQL View)
Index Back

Stdnt Acad Prog Plan Scrty

This is the search record for the Student Academic Program/Academic Plan panels. This view is used to impose plan-level security on panelgroups that use STDNT_CAR_SRCH as the search record

SELECT B.OPRCLASS , A.EMPLID , A.ACAD_CAREER , A.STDNT_CAR_NBR , G.OPRID , C.DESCRSHORT , D.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 FROM PS_ACAD_PROG A , PS_ACAD_PLAN A1 , PS_PEOPLE_SRCH B , PS_ACAD_PROG_TBL C , PS_INSTITUTION_TBL D , PS_SCRTY_TBL_PLAN G WHERE A.EMPLID = A1.EMPLID AND A.EFFDT = ( SELECT MAX(I.EFFDT) FROM PS_ACAD_PROG I WHERE I.INSTITUTION = A.INSTITUTION AND I.EMPLID = A.EMPLID AND I.ACAD_CAREER = A.ACAD_CAREER AND I.STDNT_CAR_NBR =A.STDNT_CAR_NBR AND I.EFFDT <= %CurrentDateIn) AND A.EFFSEQ = ( SELECT MAX(H.EFFSEQ) FROM PS_ACAD_PROG H WHERE H.INSTITUTION = A.INSTITUTION AND H.EMPLID = A.EMPLID AND H.ACAD_CAREER = A.ACAD_CAREER AND H.STDNT_CAR_NBR =A.STDNT_CAR_NBR AND H.EFFDT = A.EFFDT) AND A.ACAD_CAREER = A1.ACAD_CAREER AND A.STDNT_CAR_NBR = A1.STDNT_CAR_NBR AND A.EFFDT = A1.EFFDT AND A.EFFSEQ = A1.EFFSEQ AND A.EMPLID = B.EMPLID AND A.ACAD_PROG = C.ACAD_PROG AND A.INSTITUTION = C.INSTITUTION AND C.EFFDT = ( SELECT MAX(E.EFFDT) FROM PS_ACAD_PROG_TBL E WHERE E.ACAD_PROG = A.ACAD_PROG AND E.INSTITUTION = A.INSTITUTION AND E.EFFDT <= A.EFFDT) AND A.INSTITUTION = D.INSTITUTION AND D.EFFDT = ( SELECT MAX(F.EFFDT) FROM PS_INSTITUTION_TBL F WHERE F.INSTITUTION = A.INSTITUTION AND F.EFFDT <= A.EFFDT) AND A.INSTITUTION = G.INSTITUTION AND (A1.ACAD_PLAN = G.ACAD_PLAN OR G.ACAD_PLAN = 'ALL') AND G.ACCESS_CD = 'Y' AND NOT EXISTS ( SELECT 'X' FROM PS_SCRTY_TBL_PLAN G1 WHERE G1.ACCESS_CD = 'N' AND G1.OPRID = G.OPRID AND G1.INSTITUTION = A.INSTITUTION AND G1.ACAD_PLAN = A1.ACAD_PLAN)

# 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
4 STDNT_CAR_NBR Number(3,0) SMALLINT NOT NULL Student Career Nbr
5 OPRID Character(30) VARCHAR2(30) NOT NULL A user's ID (see PSOPRDEFN).
6 PROG_SHORT_DESCR Character(10) VARCHAR2(10) NOT NULL Program Short Descr
7 INST_DESCR Character(10) VARCHAR2(10) NOT NULL Institution Short Descr
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