PSPTTREEDEFN_VW

(SQL View)
Index Back

Tree Definition


SELECT DISTINCT A.SETID , A.SETCNTRLVALUE , A.TREE_NAME , A.TREE_BRANCH , B.TREE_STRCT_ID , B.VALID_TREE , B.LASTUPDDTTM , B.LASTUPDOPRID , B.TREE_CATEGORY , B.VERSION FROM PSTREEBRANCH A , PSTREEDEFN B WHERE B.SETID = A.SETID AND B.SETCNTRLVALUE = A.SETCNTRLVALUE AND B.TREE_NAME = A.TREE_NAME AND A.EFFDT = B.EFFDT UNION SELECT DISTINCT A.SETID , A.SETCNTRLVALUE , A.TREE_NAME , ' ' , A.TREE_STRCT_ID , A.VALID_TREE , A.LASTUPDDTTM , A.LASTUPDOPRID , A.TREE_CATEGORY , A.VERSION FROM PSTREEDEFN A WHERE NOT EXISTS ( SELECT 'X' FROM PSTREEBRANCH B WHERE B.SETID = A.SETID AND B.SETCNTRLVALUE = A.SETCNTRLVALUE AND B.TREE_NAME = A.TREE_NAME AND B.EFFDT =A.EFFDT)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 SETID Character(5) VARCHAR2(5) NOT NULL This field is used to store the value of SetID on various setup tables.

Prompt Table: SETID_NOMETA_VW

2 SETCNTRLVALUE Character(20) VARCHAR2(20) NOT NULL Tree Definition User Key Value
3 TREE_NAME Character(18) VARCHAR2(18) NOT NULL Tree Name
4 TREE_BRANCH Character(20) VARCHAR2(20) NOT NULL Tree Branch
5 TREE_STRCT_ID Character(18) VARCHAR2(18) NOT NULL Tree Structure Name (see PSTREESTRCT).

Prompt Table: PSTREESTRCT

6 VALID_TREE Character(1) VARCHAR2(1) NOT NULL Valid Tree
N=Draft Tree
Y=Valid Tree
7 LASTUPDDTTM DateTime(26) TIMESTAMP Specifies the date and time of the last update to an entry. This field is maintained by PeopleSoft and is used in a variety of contexts.
8 LASTUPDOPRID Character(30) VARCHAR2(30) NOT NULL Specifies the User ID which made the last update to an entry. This field is maintained by PeopleSoft and is used in a variety of contexts.
9 TREE_CATEGORY Character(18) VARCHAR2(18) NOT NULL Category name for the Tree

Default Value: DEFAULT

10 VERSION Number(10,0) DECIMAL(10) NOT NULL Version. Internal PeopleTools version for controlling caching of object. - Version/Table reference