The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
action_type_id
,rule_type
,start_date
,end_date
,security_group_id
,object_version_number
from ame_action_type_usages
where action_type_id = p_action_type_id
and rule_type = p_rule_type
and p_effective_date
between start_date and nvl(end_date - ame_util.oneSecond, p_effective_date);
update ame_action_type_usages t
set t.end_date = p_new_end_date
,t.last_updated_by = l_current_user_id
,t.last_update_date = p_new_end_date
,t.last_update_login = l_current_user_id
,t.object_version_number = l_object_version_number
where t.action_type_id = p_action_type_id
and t.rule_type = p_rule_type
and p_effective_date between t.start_date
and nvl(t.end_date - ame_util.oneSecond,sysdate);
select
action_type_id
,rule_type
,start_date
,end_date
,security_group_id
,object_version_number
from ame_action_type_usages
where action_type_id = p_action_type_id
and rule_type = p_rule_type
and p_effective_date
between start_date and nvl(end_date - ame_util.oneSecond, sysdate)
for update nowait;
If (p_datetrack_mode <> hr_api.g_insert) then
--
-- We must select and lock the current row.
--
Open C_Sel1;
if (p_datetrack_mode = hr_api.g_update) then
p_validation_start_date := p_effective_date;
elsif (p_datetrack_mode = hr_api.g_delete) then
p_validation_start_date := p_effective_date;
select nvl(max(t.object_version_number),0) + 1
into l_ovn
from ame_action_type_usages t
where t.action_type_id = p_action_type_id
and t.rule_type = p_rule_type;