FP_DEPT_VW(SQL View) |
Index Back |
---|---|
Authorized Departments |
SELECT DISTINCT A.SETID , %Substring(A.TREE_NODE, 1, 10) , B.TREE_NODE FROM PSTREENODE A , PSTREENODE B , PS_SCRTY_TREE_VW C WHERE A.TREE_NAME = 'DEPT_SECURITY' AND B.TREE_NAME = 'DEPT_SECURITY' AND A.EFFDT = B.EFFDT AND A.EFFDT = C.EFFDT AND C.EFFDT = ( SELECT MAX(D.EFFDT) FROM PS_SCRTY_TREE_VW D WHERE D.TREE_NAME = C.TREE_NAME AND D.SETID = C.SETID AND D.EFFDT <= %CurrentDateIn) AND A.SETID = B.SETID AND A.SETID = C.SETID AND B.TREE_NODE_NUM BETWEEN A.TREE_NODE_NUM AND A.TREE_NODE_NUM_END |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | SETID | Character(5) | VARCHAR2(5) NOT NULL |
SetID
Prompt Table: SET_VLD_HR_01 |
2 | DEPTID | Character(10) | VARCHAR2(10) NOT NULL | Department |
3 | TREE_NODE | Character(20) | VARCHAR2(20) NOT NULL | Node name |