SAD_AO_AP_SRCH(SQL View) |
Index Back |
---|---|
Academic organization searchView on acad_org_tbl, acad_prog_tbl security. |
SELECT DISTINCT A.INSTITUTION ,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 ,PS_ACAD_PROG_TBL D WHERE C.ACCESS_CD='Y' AND A.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
Prompt Table: INSTITUTION_TBL |
2 | ACAD_ORG | Character(10) | VARCHAR2(10) NOT NULL | Academic Organization |
3 | OPRID | Character(30) | VARCHAR2(30) NOT NULL | A user's ID (see PSOPRDEFN). |
4 | EFFDT | Date(10) | DATE NOT NULL |
Effective Date
Default Value: %date |
5 | EFF_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Effective Status
A=Active I=Inactive |
6 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
7 | CAMPUS | Character(5) | VARCHAR2(5) NOT NULL |
Campus
Prompt Table: CAMPUS_TBL |
8 | ACCESS_CD | Character(1) | VARCHAR2(1) NOT NULL |
Access Code
N=No Access Y=Read/Write Access |