SAD_AV_NLD_VW

(SQL View)
Index Back

Security view on AVB table

Security view on appendix table with AVB agreements. The view is on all AVB appendixes (default and non-default).

SELECT DISTINCT A.INSTITUTION , A.ACAD_ORG , A.SAD_APPENDIX_NLD , C.OPRID FROM PS_SAD_AVB_NLD A , PS_SCRTY_TBL_ACAD C WHERE 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=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)) AND A.EFFDT= ( SELECT MAX(B.EFFDT) FROM PS_SAD_AVB_NLD B WHERE B.INSTITUTION=A.INSTITUTION AND B.ACAD_ORG=A.ACAD_ORG AND B.SAD_APPENDIX_NLD=A.SAD_APPENDIX_NLD AND B.EFFDT<=%CurrentDateIn) AND A.EFF_STATUS<>'I'

# 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).