SSR_AC_XREFSCTY

(SQL View)
Index Back

Activity Security

This view is based on CRSE_CATLG_SCTY, a search view used to restrict course catalog data access to courses offered under Academic Organizations that an operator is authorized to access. In this view the CRSE_OFFER_NBR and CRS_TOPIC_ID fields are added as keys.

SELECT C.OPRID ,V.INSTITUTION ,B.SUBJECT ,B.CATALOG_NBR ,B.CAMPUS ,B.CRSE_ID ,B.CRSE_OFFER_NBR ,V.CRS_TOPIC_ID ,A.DESCR ,C.ACCESS_CD ,B.ACAD_CAREER FROM PS_SSR_AC_CRSEREF V ,PS_CRSE_CATALOG A ,PS_CRSE_OFFER B ,PS_SCRTY_TBL_ACAD C WHERE V.INSTITUTION = B.INSTITUTION AND V.CRSE_ID = B.CRSE_ID AND V.CRSE_OFFER_NBR = B.CRSE_OFFER_NBR AND A.CRSE_ID = B.CRSE_ID AND A.EFFDT = B.EFFDT AND A.EFFDT = ( SELECT MAX(A1.EFFDT) FROM PS_CRSE_CATALOG A1 WHERE A1.CRSE_ID = V.CRSE_ID AND A1.EFFDT <= V.EFFDT) AND V.EFFDT = ( SELECT MAX(V1.EFFDT) FROM PS_SSR_AC_CRSEREF V1 WHERE V1.CRSE_ID = V.CRSE_ID AND V1.CRSE_OFFER_NBR = V.CRSE_OFFER_NBR AND V1.CRS_TOPIC_ID = V.CRS_TOPIC_ID) AND C.ACCESS_CD='Y' AND EXISTS ( SELECT 'X' FROM PSTREENODE E WHERE E.SETID=' ' AND E.TREE_NAME='ACAD_ORGANIZATION' AND E.EFFDT=C.TREE_EFFDT AND E.TREE_NODE=B.ACAD_ORG AND E.TREE_NODE_NUM BETWEEN C.TREE_NODE_NUM AND C.TREE_NODE_NUM_END AND NOT EXISTS ( SELECT 'X' FROM PS_SCRTY_TBL_ACAD G WHERE C.OPRID=G.OPRID AND C.TREE_NODE_NUM<>G.TREE_NODE_NUM AND E.TREE_NODE_NUM BETWEEN G.TREE_NODE_NUM AND G.TREE_NODE_NUM_END AND G.TREE_NODE_NUM BETWEEN C.TREE_NODE_NUM AND C.TREE_NODE_NUM_END))

  • Related Language Record: SSR_AC_XREFSLNG
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 OPRID Character(30) VARCHAR2(30) NOT NULL A user's ID (see PSOPRDEFN).
    2 INSTITUTION Character(5) VARCHAR2(5) NOT NULL Academic Institution

    Default Value: OPR_DEF_TBL_CS.INSTITUTION

    Prompt Table: INSTITUTION_TBL

    3 SUBJECT Character(8) VARCHAR2(8) NOT NULL Subject Area

    Default Value: OPR_DEF_TBL_CS.SUBJECT

    Prompt Table: SUBJECT_TBL_VW

    4 CATALOG_NBR Character(10) VARCHAR2(10) NOT NULL Catalog Nbr
    5 CAMPUS Character(5) VARCHAR2(5) NOT NULL Campus

    Prompt Table: CAMPUS_TBL

    6 CRSE_ID Character(6) VARCHAR2(6) NOT NULL Course ID

    Prompt Table: SSR_AC_OFFVW

    7 CRSE_OFFER_NBR Number(2,0) SMALLINT NOT NULL Offering Number

    Prompt Table: CRSE_OFFER

    8 CRS_TOPIC_ID Number(3,0) SMALLINT NOT NULL Course Topic ID

    Prompt Table: CRSE_TOPICS

    9 DESCR Character(30) VARCHAR2(30) NOT NULL Description
    10 ACCESS_CD Character(1) VARCHAR2(1) NOT NULL Access Code
    N=No Access
    Y=Read/Write Access
    11 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