PV_CATTREE_VW(SQL View) |
Index Back |
---|---|
View into flattened out tree. |
SELECT F.SETID , F.TREE_NAME , F.CATEGORY_CD , F.CATEGORY_ID , F.PV_CATEGORYPATH , C.DESCR60 , C.LEAD_TIME FROM PS_PV_CATTREE_FLAT F , PS_ITM_CAT_TBL C , PS_INSTALLATION_PO P WHERE F.SETID = C.SETID AND F.CATEGORY_CD = C.CATEGORY_CD AND F.CATEGORY_ID = C.CATEGORY_ID AND C.CATEGORY_TYPE = P.CATEGORY_TYPE AND C.EFF_STATUS = 'A' AND C.EFFDT = ( SELECT MAX(M.EFFDT) FROM PS_ITM_CAT_TBL M WHERE M.SETID = C.SETID AND M.CATEGORY_TYPE = C.CATEGORY_TYPE AND M.CATEGORY_CD = C.CATEGORY_CD AND M.CATEGORY_ID = C.CATEGORY_ID AND M.EFFDT <= %CurrentDateIn) |
# | 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 |
3 | CATEGORY_CD | Character(18) | VARCHAR2(18) NOT NULL | Category Code |
4 | CATEGORY_ID | Character(5) | VARCHAR2(5) NOT NULL | Category ID |
5 | PV_CATEGORYPATH | Long Character | CLOB | Category Path |
6 | CATDESCR | Character(60) | VARCHAR2(60) NOT NULL | Category Description |
7 | LEAD_TIME | Number(3,0) | SMALLINT NOT NULL | Lead Time Days |