The following lines contain the word 'select', 'insert', 'update' or 'delete':
select count(trip_id)
from mst_trips
where plan_id = arg_plan_id
and continuous_move_id = arg_continuous_move_id;
select sum(total_trip_distance)
from mst_trips
where plan_id = arg_plan_id
and continuous_move_id = arg_continuous_move_id;
select nvl(total_saving, 0)
into l_savings
from mst_cm_trips
where plan_id = arg_plan_id
and continuous_move_id = arg_continuous_move_id;
cursor num_of_excep is select count(1)
from mst_exception_details
where plan_id = arg_plan_id
and continuous_move_id is not null;
select count(1) from mst_trips
where plan_id = arg_plan_id
and mode_of_transport = 'TRUCK'
--Bug_Fix for 3803450
-- and move_type = 2;
select count(1) from mst_trips
where plan_id = arg_plan_id
and mode_of_transport = 'TRUCK'
and continuous_move_id is not null
--Bug_Fix for 3803450
-- and move_type = 2;
select count(1)
from mst_delivery_legs
where plan_id = arg_plan_id
and trip_id = arg_trip_id;
select meaning
from mfg_lookups
where lookup_type = 'MST_YES_NO'
and lookup_code = 1;