SAD_ACAD_O_SCTY

(SQL View)
Index Back

Academic Organization Search

FS 03052004

SELECT A.ACAD_ORG ,C.OPRID ,A.EFFDT ,A.EFF_STATUS ,A.DESCR ,A.CAMPUS ,C.ACCESS_CD FROM PS_ACAD_ORG_TBL 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))

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 ACAD_ORG Character(10) VARCHAR2(10) NOT NULL Academic Organization
2 OPRID Character(30) VARCHAR2(30) NOT NULL A user's ID (see PSOPRDEFN).
3 EFFDT Date(10) DATE Effective Date

Default Value: %date

4 EFF_STATUS Character(1) VARCHAR2(1) NOT NULL Effective Status
A=Active
I=Inactive

Default Value: A

5 DESCR Character(30) VARCHAR2(30) NOT NULL Description
6 CAMPUS Character(5) VARCHAR2(5) NOT NULL Campus
7 ACCESS_CD Character(1) VARCHAR2(1) NOT NULL Access Code
N=No Access
Y=Read/Write Access