DBA Data[Home] [Help]

VIEW: APPS.MST_ACT_ASTL_SUMMARY_V

Source

View Text - Preformatted

SELECT mor.plan_id, in_request_id, out_request_id, mor.trip_id, mt.trip_number, nvl(number1, 0), nvl(number2, 0), nvl(number2, 0) - nvl(number1, 0), (nvl(number2, 0) - nvl(number1, 0))/decode(nvl(number1, 1), 0, 1, nvl(number1, 1)), nvl(number3, 0), mp.currency_uom from mst_out_requests mor, mst_trips mt, mst_plans mp WHERE mor.plan_id = mt.plan_id and mor.trip_id = mt.trip_id and mor.plan_id = mp.plan_id
View Text - HTML Formatted

SELECT MOR.PLAN_ID
, IN_REQUEST_ID
, OUT_REQUEST_ID
, MOR.TRIP_ID
, MT.TRIP_NUMBER
, NVL(NUMBER1
, 0)
, NVL(NUMBER2
, 0)
, NVL(NUMBER2
, 0) - NVL(NUMBER1
, 0)
, (NVL(NUMBER2
, 0) - NVL(NUMBER1
, 0))/DECODE(NVL(NUMBER1
, 1)
, 0
, 1
, NVL(NUMBER1
, 1))
, NVL(NUMBER3
, 0)
, MP.CURRENCY_UOM
FROM MST_OUT_REQUESTS MOR
, MST_TRIPS MT
, MST_PLANS MP
WHERE MOR.PLAN_ID = MT.PLAN_ID
AND MOR.TRIP_ID = MT.TRIP_ID
AND MOR.PLAN_ID = MP.PLAN_ID