SAD_OHS_NLD_VW

(SQL View)
Index Back

Security view on AOHS

Security view on ALL records in the SAD_AOHS_NLD table

SELECT DISTINCT A.INSTITUTION , A.ACAD_ORG , A.SAD_APPENDIX_NLD , C.OPRID FROM PS_SAD_AOHS_NLD A , PS_ACAD_ORG_TBL B , PS_ACAD_PROG_TBL D , PS_SCRTY_TBL_ACAD C WHERE C.ACCESS_CD='Y' AND A.ACAD_ORG = B.ACAD_ORG AND B.ACAD_ORG= D.ACAD_ORG AND D.EFFDT = ( SELECT MAX(A_ED.EFFDT) FROM PS_ACAD_PROG_TBL A_ED WHERE D.INSTITUTION = A_ED.INSTITUTION AND D.ACAD_PROG = A_ED.ACAD_PROG AND A_ED.EFFDT <= %CurrentDateIn) 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=A.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))

# 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 ACAD_ORG Character(10) VARCHAR2(10) NOT NULL Academic Organization

Prompt Table: SAD_AO_AP_SRCH

3 SAD_APPENDIX_NLD Character(12) VARCHAR2(12) NOT NULL Appendix reference id (name of appendix)
4 OPRID Character(30) VARCHAR2(30) NOT NULL A user's ID (see PSOPRDEFN).