SUMLD_CHNDLV_VW(SQL View) |
Index Back |
---|---|
Child Nodes at a LevelThis View is used to prompt the valid values for certain Summary Ledger Chartfield. The values are from tree nodes which are children of selected nodes (in LED_SUMV_TBL), and at certain level of a Chartfield Value tree. The first three keys (TREE_NAME_SETID, LEDGER, CHARTFIELD) are matched with the values on the panel. |
SELECT F.SETID ,F.LEDGER ,F.CHARTFIELD ,S.SETID ,S.TREE_NAME ,L.TREE_LEVEL ,N.TREE_NODE ,S.EFFDT ,D.DESCR FROM PS_LED_FLDS_TBL F ,PS_LED_SUMV_TBL V ,PSTREENODE S ,PSTREELEVEL L ,PSTREENODE N ,PS_TREE_NODE_TBL D WHERE V.LEDGER=F.LEDGER AND V.SETID=F.SETID AND V.FIELD_SEQUENCE=F.FIELD_SEQUENCE AND S.TREE_NAME=F.TREE_NAME AND S.TREE_NODE=V.SELECT_VALUE AND L.TREE_NAME=F.TREE_NAME AND L.TREE_LEVEL=F.TREE_LEVEL AND L.SETID=S.SETID AND L.EFFDT=S.EFFDT AND N.TREE_NAME=L.TREE_NAME AND N.SETID=L.SETID AND N.EFFDT=L.EFFDT AND N.TREE_LEVEL_NUM=L.TREE_LEVEL_NUM AND N.TREE_NODE_NUM>=S.TREE_NODE_NUM AND N.TREE_NODE_NUM_END<=S.TREE_NODE_NUM_END AND D.TREE_NODE=N.TREE_NODE AND D.SETID=N.SETID AND D.EFFDT=( SELECT MAX(EFFDT) FROM PS_TREE_NODE_TBL WHERE SETID=D.SETID AND TREE_NODE=D.TREE_NODE AND EFFDT<=N.EFFDT) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | SETID | Character(5) | VARCHAR2(5) NOT NULL | SetID |
2 | LEDGER | Character(10) | VARCHAR2(10) NOT NULL | Ledger |
3 | FIELDNAME | Character(18) | VARCHAR2(18) NOT NULL | Field Name (see PSDBFIELD). |
4 | TREE_NAME_SETID | Character(5) | VARCHAR2(5) NOT NULL | TableSet |
5 | TREE_NAME | Character(18) | VARCHAR2(18) NOT NULL | Tree Name |
6 | TREE_LEVEL | Character(10) | VARCHAR2(10) NOT NULL | Tree Level Number |
7 | CHARTFIELD_VALUE | Character(30) | VARCHAR2(30) NOT NULL | ChartField Value |
8 | EFFDT | Date(10) | DATE | Effective Date |
9 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |