TD_CUST_TREE_VW

(SQL View)
Index Back

CustomerTrees

Returns only customer trees from Trade Promotion tree tables

SELECT A.SETID , A.TD_TREE_ID , A.EFFDT , A.DESCR , B.TD_TREE_BRANCH , B.DESCR FROM PS_TD_TREE_HDR A , PS_TD_TREE_NODE B WHERE %Join(COMMON_KEYS, TD_TREE_HDR A, TD_TREE_NODE B) AND A.TD_TREE_TYPE = 'C' AND ((B.TD_TREE_BRANCH <> B.TD_TREE_BRANCH_PAR) OR (B.TD_NODE_LEVEL = 1))

  • Related Language Record: TD_CUSTREEVWLNG
  • # 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 NOT NULL Effective Date
    4 DESCR Character(30) VARCHAR2(30) NOT NULL Description
    5 TD_TREE_BRANCH Character(20) VARCHAR2(20) NOT NULL Tree Branch Node ID
    6 TD_BRANCH_DESCR Character(30) VARCHAR2(30) NOT NULL Tree Branch