CRSE_CATL2_SCTY

(SQL View)
Index Back

Course Catalog Security

CRSE_CATLG_SCTY is a search view used to restrict course catalog data access to courses offered under Academic Organizations that an operator is authorized to access.

SELECT b.institution ,b.subject ,b.catalog_nbr ,b.campus ,b.crse_id ,b.crse_offer_nbr ,C.OPRID ,b.ACAD_ORG ,a.descr ,C.ACCESS_CD , 0 ,D.SSR_PERIOD_ID FROM ps_crse_catalog a ,PS_CRSE_OFFER b ,PS_SCRTY_TBL_ACAD C , PS_SSR_PERIOD_TBL D WHERE a.crse_id = b.crse_id AND a.effdt = b.effdt 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)) AND B.INSTITUTION = D.INSTITUTION AND A.EFFDT = ( SELECT MAX(E.EFFDT) FROM PS_CRSE_CATALOG E WHERE A.CRSE_ID = E.CRSE_ID AND E.EFFDT <= D.SSR_PRD_START_DT)

  • Related Language Record: CRSE_CTLG_S2LNG
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 INSTITUTION Character(5) VARCHAR2(5) NOT NULL Academic Institution

    Default Value: OPR_DEF_TBL_CS.INSTITUTION

    Prompt Table: INSTITUTION_TBL

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

    Default Value: OPR_DEF_TBL_CS.SUBJECT

    Prompt Table: SUBJECT_TBL_VW

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

    Prompt Table: CAMPUS_TBL

    5 CRSE_ID Character(6) VARCHAR2(6) NOT NULL Course ID
    6 CRSE_OFFER_NBR Number(2,0) SMALLINT NOT NULL Course Offering Nbr
    7 OPRID Character(30) VARCHAR2(30) NOT NULL A user's ID (see PSOPRDEFN).
    8 ACAD_ORG Character(10) VARCHAR2(10) NOT NULL Academic Organization
    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 CRS_TOPIC_ID Number(3,0) SMALLINT NOT NULL Course Topic ID
    12 SSR_PERIOD_ID Character(12) VARCHAR2(12) NOT NULL Academic Period ID