DBA Data[Home] [Help]

VIEW: APPS.MST_DEAD_STOPS_V

Source

View Text - Preformatted

SELECT med.plan_id , med.exception_type , mt.trip_id , mts.stop_id , mts.stop_location_id , mt.planned_flag , mt.trip_number , mt.mode_of_transport , med.exception_detail_id , substr(mst_wb_util.get_name(mts.stop_location_id),1,80) , wl.address1 , wl.city , wl.state , wl.postal_code , wl.country , mts.stop_sequence_number , ml.meaning , substr(mst_wb_util.get_workflow_status(med.plan_id, med.exception_detail_id),1,20) from mst_exception_details med , mst_trips mt , mst_trip_stops mts , mfg_lookups ml , wsh_locations wl WHERE med.status = ml.lookup_code and ml.lookup_type = 'MST_EXCEPTION_STATUS' and med.plan_id = mts.plan_id and med.stop_id1 = mts.stop_id and med.plan_id = mt.plan_id and med.trip_id1 = mt.trip_id and mts.stop_location_id = wl.wsh_location_id
View Text - HTML Formatted

SELECT MED.PLAN_ID
, MED.EXCEPTION_TYPE
, MT.TRIP_ID
, MTS.STOP_ID
, MTS.STOP_LOCATION_ID
, MT.PLANNED_FLAG
, MT.TRIP_NUMBER
, MT.MODE_OF_TRANSPORT
, MED.EXCEPTION_DETAIL_ID
, SUBSTR(MST_WB_UTIL.GET_NAME(MTS.STOP_LOCATION_ID)
, 1
, 80)
, WL.ADDRESS1
, WL.CITY
, WL.STATE
, WL.POSTAL_CODE
, WL.COUNTRY
, MTS.STOP_SEQUENCE_NUMBER
, ML.MEANING
, SUBSTR(MST_WB_UTIL.GET_WORKFLOW_STATUS(MED.PLAN_ID
, MED.EXCEPTION_DETAIL_ID)
, 1
, 20)
FROM MST_EXCEPTION_DETAILS MED
, MST_TRIPS MT
, MST_TRIP_STOPS MTS
, MFG_LOOKUPS ML
, WSH_LOCATIONS WL
WHERE MED.STATUS = ML.LOOKUP_CODE
AND ML.LOOKUP_TYPE = 'MST_EXCEPTION_STATUS'
AND MED.PLAN_ID = MTS.PLAN_ID
AND MED.STOP_ID1 = MTS.STOP_ID
AND MED.PLAN_ID = MT.PLAN_ID
AND MED.TRIP_ID1 = MT.TRIP_ID
AND MTS.STOP_LOCATION_ID = WL.WSH_LOCATION_ID