CNTRCT_CAT_AVW

(SQL View)
Index Back

Gets category code

Feturns 1 row for each contract with category line, category ID, and category amount if the category line exists, as well as the category code for that category.

SELECT A.SETID , A.CNTRCT_ID , B.CAT_LINE_NBR , B.AMT_LINE_RELEASED , B.CURRENCY_CD , C.CATEGORY_ID , C.CATEGORY_CD FROM PS_CNTRCT_HDR A LEFT OUTER JOIN ( PS_CNTRCT_CAT_RLS B JOIN PS_CNTRCT_CATCD_VW C ON C.SETID = B.SETID AND C.CNTRCT_ID = B.CNTRCT_ID AND C.CAT_LINE_NBR = B.CAT_LINE_NBR ) ON B.SETID = A.SETID AND B.CNTRCT_ID = A.CNTRCT_ID AND A.VERSION_STATUS = 'C'

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 SETID Character(5) VARCHAR2(5) NOT NULL SetID
2 CNTRCT_ID Character(25) VARCHAR2(25) NOT NULL Buying Agreement ID
3 CAT_LINE_NBR Number(5,0) INTEGER NOT NULL Contract Category Line Number
4 AMT_CAT_RELEASED Signed Number(28,3) DECIMAL(26,3) NOT NULL Total Category Amt Released
5 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
6 CATEGORY_ID Character(5) VARCHAR2(5) NOT NULL Category ID
7 CATEGORY_CODE Character(18) VARCHAR2(18) NOT NULL 01/29/01 rml CN#WV802-1.0 Created to use as search field in supplier's workbench