TREE_PAR_LEV_VW

(SQL View)
Index Back

Nodes of a parent level


select c.setid, a.tree_name, a.tree_level, c.tree_node, a.effdt, c.descr from pstreelevel a, PSTREENODE b, ps_tree_node_tbl c where b.setid = a.setid and b.tree_name = a.tree_name and b.effdt = a.effdt and b.setid = c.setid and b.tree_node = c.tree_node and c.effdt = (select max(d.effdt) from ps_tree_node_tbl d where d.setid = c.setid and d.tree_node = c.tree_node and d.effdt <= b.effdt) and b.tree_level_num < a.tree_level_num and exists ( select 'x' from PSTREENODE d where d.setid = b.setid and d.tree_name = b.tree_name and d.effdt = b.effdt and d.tree_level_num = a.tree_level_num and d.tree_node_num between b.tree_node_num and b.tree_node_num_end)

  • Related Language Record: TREE_PAR_L_L_VW
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 TREE_NAME_SETID Character(5) VARCHAR2(5) NOT NULL TableSet
    2 TREE_NAME Character(18) VARCHAR2(18) NOT NULL Tree Name
    3 TREE_LEVEL Character(10) VARCHAR2(10) NOT NULL Tree Level Number
    4 TREE_NODE Character(20) VARCHAR2(20) NOT NULL Node name
    5 EFFDT Date(10) DATE Effective Date
    6 DESCR Character(30) VARCHAR2(30) NOT NULL Description