SELECT PS_CM_OH_EPM_TBL.BUSINESS_UNIT , PS_CM_OH_EPM_TBL.INV_ITEM_ID , %Round(SUM(PS_CM_OH_EPM_TBL.CM_UNIT_COST) ,%SQL(CM_ROUNDFACTOR_SQL)) , %Round(%DECMULT(SUM(PS_CM_OH_EPM_TBL.CM_UNIT_COST),PS_BU_ITEMS_INV.QTY_ONHAND),3) , PS_BU_ITEMS_INV.QTY_ONHAND FROM PS_CM_OH_EPM_TBL , PS_BU_ITEMS_INV WHERE PS_CM_OH_EPM_TBL.BUSINESS_UNIT = PS_BU_ITEMS_INV.BUSINESS_UNIT AND PS_CM_OH_EPM_TBL.INV_ITEM_ID = PS_BU_ITEMS_INV.INV_ITEM_ID GROUP BY PS_CM_OH_EPM_TBL.BUSINESS_UNIT, PS_CM_OH_EPM_TBL.INV_ITEM_ID, PS_BU_ITEMS_INV.QTY_ONHAND
|