The following lines contain the word 'select', 'insert', 'update' or 'delete':
select object_version_number
from ota_events
where event_id = p_event_id;
select nvl(sum(number_of_places),0)
from ota_delegate_bookings tdb
, ota_booking_status_types bst
, ota_events evt
where tdb.event_id = p_event_id
and evt.event_id = p_event_id
and tdb.booking_status_type_id = bst.booking_status_type_id
and bst.type in ('P','A','E')
and tdb.internal_booking_flag = decode(p_all_or_internal,
'INTERNAL','Y',tdb.internal_booking_flag);
select count(rowid)
from ota_delegate_bookings odb
where event_id = p_event_id and
booking_status_type_id in
(select booking_status_type_id
from ota_booking_status_types
where type = 'W');
select count(rowid)
from ota_delegate_bookings odb
where event_id = p_event_id and
internal_booking_flag = 'Y' and
booking_status_type_id in
(select booking_status_type_id
from ota_booking_status_types
where type = 'W' );
select count(resource_booking_id)
from ota_resource_bookings res
where res.event_id = p_event_id;
select nvl(sum(booking_id),0)
from ota_finance_lines tfl
where tfl.booking_id = p_booking_id
and tfl.cancelled_flag = p_cancelled_flag;
select count(*)
from
ota_event_associations
where
nvl(mandatory_enrollment_flag,'N')= 'Y' and
event_id = p_event_id;