CM_PERDCURB_VW(SQL View) |
Index Back |
---|---|
Latest Perdavg Costs10/10/02 lee: This view selects the latest perdavg records, for an item and bu. The records have book and cost element granularity. |
SELECT A.BUSINESS_UNIT , A.CM_BOOK , A.INV_ITEM_ID , A.COST_ELEMENT , A.DT_TIMESTAMP , CM_UNIT_COST FROM PS_CM_PERDAVG_COST A WHERE A.EFF_STATUS = 'A' AND A.DT_TIMESTAMP = ( SELECT MAX(B.DT_TIMESTAMP) FROM PS_CM_PERDAVG_COST B WHERE B.BUSINESS_UNIT = A.BUSINESS_UNIT AND B.INV_ITEM_ID = A.INV_ITEM_ID ) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
2 | CM_BOOK | Character(10) | VARCHAR2(10) NOT NULL | Cost Book |
3 | INV_ITEM_ID | Character(18) | VARCHAR2(18) NOT NULL | Item ID |
4 | COST_ELEMENT | Character(4) | VARCHAR2(4) NOT NULL | Cost Element |
5 | DT_TIMESTAMP | DateTime(26) | TIMESTAMP | Date Timestamp |
6 | CM_UNIT_COST | Signed Number(27,15) | DECIMAL(25,15) NOT NULL | 07/99 GMG CN800-9.0: |