CM_DEPCOSTH2_VW

(SQL View)
Index Back

Min Cost Elem per Depletion

07/04 dmw Ice 698185000: view to find the min cost element per depletion.

SELECT BUSINESS_UNIT ,INV_ITEM_ID ,CM_BOOK ,DT_TIMESTAMP ,SEQ_NBR , MIN(COST_ELEMENT) FROM PS_CM_DEPLETE_COST GROUP BY BUSINESS_UNIT ,INV_ITEM_ID ,CM_BOOK ,DT_TIMESTAMP ,SEQ_NBR

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
2 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item ID
3 CM_BOOK Character(10) VARCHAR2(10) NOT NULL Cost Book
4 DT_TIMESTAMP DateTime(26) TIMESTAMP Date Timestamp
5 SEQ_NBR Number(15,0) DECIMAL(15) NOT NULL Sequence Number
6 COST_ELEMENT Character(4) VARCHAR2(4) NOT NULL Cost Element