DBA Data[Home] [Help]

APPS.WSH_TRIP_CONSOLIDATION dependencies on WSH_TRIP_STOPS

Line 915: FROM wsh_trips wt, wsh_trip_stops wts1,

911: v_numCalls NUMBER;
912: --
913: CURSOR c_DeliveryCount(p_tripId IN NUMBER) IS
914: SELECT count(DISTINCT delivery_id)
915: FROM wsh_trips wt, wsh_trip_stops wts1,
916: wsh_trip_stops wts2, wsh_delivery_legs wdl
917: WHERE wt.trip_id = p_tripId
918: AND wts1.stop_id = wdl.pick_up_stop_id
919: AND wts2.stop_id = wdl.drop_off_stop_id

Line 916: wsh_trip_stops wts2, wsh_delivery_legs wdl

912: --
913: CURSOR c_DeliveryCount(p_tripId IN NUMBER) IS
914: SELECT count(DISTINCT delivery_id)
915: FROM wsh_trips wt, wsh_trip_stops wts1,
916: wsh_trip_stops wts2, wsh_delivery_legs wdl
917: WHERE wt.trip_id = p_tripId
918: AND wts1.stop_id = wdl.pick_up_stop_id
919: AND wts2.stop_id = wdl.drop_off_stop_id
920: AND wts1.trip_id = wt.trip_id