STDNT_CAR_SCRTY

(SQL View)
Index Back

Career Security View

This view is used to impose career-level security on panelgroups outside of the Student Records stack which are primarily driven by Emplid and use PEOPLE_SRCH. 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 A.OPRCLASS , A.EMPLID , B.INSTITUTION , B.ACAD_CAREER , C.OPRID , A.NAME , A.SEX , A.BIRTHDATE , A.BIRTHDATE_MSK , A.CAMPUS_ID , A.NATIONAL_ID , A.NATIONAL_ID_MSK , A.NID_COUNTRY , A.NATIONAL_ID_TYPE , A.NID_DESCRSHORT , A.LAST_NAME_SRCH , A.FIRST_NAME_SRCH , C.ACCESS_CD FROM PS_PEOPLE_SRCH A ,PS_ACAD_PROG B ,PS_SCRTY_TBL_CAR C WHERE B.EMPLID = A.EMPLID AND B.INSTITUTION = C.INSTITUTION AND B.ACAD_CAREER = C.ACAD_CAREER AND B.EFFDT = ( SELECT MAX(F.EFFDT) FROM PS_ACAD_PROG F WHERE F.INSTITUTION = B.INSTITUTION AND F.EMPLID = B.EMPLID AND F.ACAD_CAREER = B.ACAD_CAREER AND F.STDNT_CAR_NBR =B.STDNT_CAR_NBR AND F.EFFDT <= %CurrentDateIn) AND B.EFFSEQ = ( SELECT MAX(H.EFFSEQ) FROM PS_ACAD_PROG H WHERE H.INSTITUTION = B.INSTITUTION AND H.EMPLID = B.EMPLID AND H.ACAD_CAREER = B.ACAD_CAREER AND H.STDNT_CAR_NBR =B.STDNT_CAR_NBR AND H.EFFDT = B.EFFDT)

# 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 INSTITUTION Character(5) VARCHAR2(5) NOT NULL Academic Institution

Default Value: OPR_DEF_TBL_CS.INSTITUTION

Prompt Table: INSTITUTION_TBL

4 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

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

Prompt Table: HCR_NID_TYP_I
Set Control Field: NID_COUNTRY

15 NID_DESCRSHORT Character(10) VARCHAR2(10) NOT NULL NID Short Description
16 LAST_NAME_SRCH Character(30) VARCHAR2(30) NOT NULL Last Name
17 FIRST_NAME_SRCH Character(30) VARCHAR2(30) NOT NULL First Name
18 ACCESS_CD Character(1) VARCHAR2(1) NOT NULL Access Code
N=No Access
Y=Read/Write Access