DBA Data[Home] [Help]

APPS.WSH_TRIP_CONSOLIDATION dependencies on WSH_TRIP_STOPS

Line 895: FROM wsh_trips wt, wsh_trip_stops wts1,

891: v_numCalls NUMBER;
892: --
893: CURSOR c_DeliveryCount(p_tripId IN NUMBER) IS
894: SELECT count(DISTINCT delivery_id)
895: FROM wsh_trips wt, wsh_trip_stops wts1,
896: wsh_trip_stops wts2, wsh_delivery_legs wdl
897: WHERE wt.trip_id = p_tripId
898: AND wts1.stop_id = wdl.pick_up_stop_id
899: AND wts2.stop_id = wdl.drop_off_stop_id

Line 896: wsh_trip_stops wts2, wsh_delivery_legs wdl

892: --
893: CURSOR c_DeliveryCount(p_tripId IN NUMBER) IS
894: SELECT count(DISTINCT delivery_id)
895: FROM wsh_trips wt, wsh_trip_stops wts1,
896: wsh_trip_stops wts2, wsh_delivery_legs wdl
897: WHERE wt.trip_id = p_tripId
898: AND wts1.stop_id = wdl.pick_up_stop_id
899: AND wts2.stop_id = wdl.drop_off_stop_id
900: AND wts1.trip_id = wt.trip_id