TREE_NODE_VW2

(SQL View)
Index Back

Tree Node Prompt Table

Tree Node prompt table for 'summer' trees.

SELECT A.SETID ,A.TREE_NAME ,A.EFFDT ,A.TREE_NODE ,B.DESCR FROM PSTREENODE A , PS_TREE_NODE_TBL B WHERE B.SETID = A.SETID AND B.TREE_NODE = A.TREE_NODE AND (B.EFFDT = ( SELECT MAX(EFFDT) FROM PS_TREE_NODE_TBL WHERE SETID = A.SETID AND TREE_NODE = A.TREE_NODE AND EFF_STATUS = 'A' AND EFFDT <= A.EFFDT) OR (NOT EXISTS ( SELECT 'X' FROM PS_TREE_NODE_TBL WHERE SETID = A.SETID AND TREE_NODE = A.TREE_NODE AND EFF_STATUS = 'A' AND EFFDT <= A.EFFDT) AND B.EFFDT = ( SELECT MAX(EFFDT) FROM PS_TREE_NODE_TBL WHERE SETID = A.SETID AND TREE_NODE = A.TREE_NODE AND EFFDT <= A.EFFDT)))

  • Related Language Record: TREE_NODE_LG
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 SETID Character(5) VARCHAR2(5) NOT NULL SetID
    2 TREE_NAME Character(18) VARCHAR2(18) NOT NULL Tree Name

    Prompt Table: TREEDEFN_VW

    3 TREE_EFFDT Date(10) DATE NOT NULL Effective date of the Tree
    4 TREE_NODE Character(20) VARCHAR2(20) NOT NULL Node name
    5 DESCR Character(30) VARCHAR2(30) NOT NULL Description