DBA Data[Home] [Help]

VIEW: APPS.MST_ALL_CM_SUMMARY_V

Source

View Text - Preformatted

SELECT pl.plan_id, pl.compile_designator, pl.description, count(1), sum(tp.total_transportation_cost), sum(tp.total_saving), mst_cm_details.get_percent_of_tl_in_cm(pl.plan_id), mst_cm_details.get_number_of_exceptions(pl.plan_id), currency_uom from mst_plans pl, mst_cm_trips tp WHERE pl.plan_id = tp.plan_id group by pl.plan_id, pl.compile_designator, pl.description, currency_uom
View Text - HTML Formatted

SELECT PL.PLAN_ID
, PL.COMPILE_DESIGNATOR
, PL.DESCRIPTION
, COUNT(1)
, SUM(TP.TOTAL_TRANSPORTATION_COST)
, SUM(TP.TOTAL_SAVING)
, MST_CM_DETAILS.GET_PERCENT_OF_TL_IN_CM(PL.PLAN_ID)
, MST_CM_DETAILS.GET_NUMBER_OF_EXCEPTIONS(PL.PLAN_ID)
, CURRENCY_UOM
FROM MST_PLANS PL
, MST_CM_TRIPS TP
WHERE PL.PLAN_ID = TP.PLAN_ID GROUP BY PL.PLAN_ID
, PL.COMPILE_DESIGNATOR
, PL.DESCRIPTION
, CURRENCY_UOM