TD_CUST_ROOT_VW(SQL View) |
Index Back |
---|---|
Customer Node Security ViewCustomer Node Security View: OPRID keyed view: Bring back valid NODE_IDs based on OPRID |
SELECT DISTINCT A1.SETID , A1.TD_TREE_ID , A1.EFFDT , C1.OPRID , A1.TD_NODE_ID , A1.TD_NODE_PARENT_ID , A1.TD_SEQNO , A1.TREE_NODE_NUM , A1.TREE_NODE_NUM_END , A1.DESCR , A1.TD_TREE_BRANCH , A1.TD_TREE_BRANCH_PAR , A1.TD_NODE_LEVEL FROM PS_TD_TREE_NODE A1 , PS_TD_TREE_APPROVE B1 , PSOPRDEFN C1 WHERE A1.SETID = B1.SETID AND A1.TD_TREE_ID = B1.TD_TREE_ID AND A1.EFFDT = B1.EFFDT AND A1.TD_NODE_ID = B1.TD_NODE_ID AND ((B1.TD_SECURITY_TYPE = 'U' AND B1.TD_SECURITY_ID = C1.OPRID) OR (B1.TD_SECURITY_TYPE = 'R' AND (EXISTS ( SELECT 'X' FROM PSROLEUSER R1 WHERE R1.ROLENAME = B1.TD_SECURITY_ID AND R1.ROLEUSER = C1.OPRID)))) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | SETID | Character(5) | VARCHAR2(5) NOT NULL |
SetID
Default Value: OPR_DEF_TBL_FS.SETID Prompt Table: SP_SETID_NONVW |
2 | TD_TREE_ID | Character(8) | VARCHAR2(8) NOT NULL | Tree ID |
3 | EFFDT | Date(10) | DATE | Effective Date |
4 | OPRID | Character(30) | VARCHAR2(30) NOT NULL | A user's ID (see PSOPRDEFN). |
5 | TD_NODE_ID | Character(8) | VARCHAR2(8) NOT NULL | Node ID |
6 | TD_NODE_PARENT_ID | Character(8) | VARCHAR2(8) NOT NULL | Node ID |
7 | TD_SEQNO | Number(15,4) | DECIMAL(14,4) NOT NULL | Sequence Number |
8 | TREE_NODE_NUM | Number(10,0) | DECIMAL(10) NOT NULL | Internal beginning node range number |
9 | TREE_NODE_NUM_END | Number(10,0) | DECIMAL(10) NOT NULL | Internal ending node range number |
10 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
11 | TD_TREE_BRANCH | Character(20) | VARCHAR2(20) NOT NULL | Tree Branch Node ID |
12 | TD_TREE_BRANCH_PAR | Character(20) | VARCHAR2(20) NOT NULL | Parent Branch |
13 | TD_NODE_LEVEL | Number(3,0) | SMALLINT NOT NULL | Node Level |