The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
aplcn_to_bnft_pool_id,
effective_start_date,
effective_end_date,
acty_base_rt_id,
bnft_prvdr_pool_id,
business_group_id,
abp_attribute_category,
abp_attribute1,
abp_attribute2,
abp_attribute3,
abp_attribute4,
abp_attribute5,
abp_attribute6,
abp_attribute7,
abp_attribute8,
abp_attribute9,
abp_attribute10,
abp_attribute11,
abp_attribute12,
abp_attribute13,
abp_attribute14,
abp_attribute15,
abp_attribute16,
abp_attribute17,
abp_attribute18,
abp_attribute19,
abp_attribute20,
abp_attribute21,
abp_attribute22,
abp_attribute23,
abp_attribute24,
abp_attribute25,
abp_attribute26,
abp_attribute27,
abp_attribute28,
abp_attribute29,
abp_attribute30,
object_version_number
from ben_aplcn_to_bnft_pool_f
where aplcn_to_bnft_pool_id = p_aplcn_to_bnft_pool_id
and p_effective_date
between effective_start_date and effective_end_date;
p_delete out nocopy boolean,
p_future_change out nocopy boolean,
p_delete_next_change out nocopy boolean) is
--
l_proc varchar2(72) := g_package||'find_dt_del_modes';
select t.acty_base_rt_id,
t.bnft_prvdr_pool_id
from ben_aplcn_to_bnft_pool_f t
where t.aplcn_to_bnft_pool_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
p_delete => p_delete,
p_future_change => p_future_change,
p_delete_next_change => p_delete_next_change);
p_update out nocopy boolean,
p_update_override out nocopy boolean,
p_update_change_insert out nocopy boolean) is
--
l_proc varchar2(72) := g_package||'find_dt_upd_modes';
p_update => p_update,
p_update_override => p_update_override,
p_update_change_insert => p_update_change_insert);
update ben_aplcn_to_bnft_pool_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.aplcn_to_bnft_pool_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
aplcn_to_bnft_pool_id,
effective_start_date,
effective_end_date,
acty_base_rt_id,
bnft_prvdr_pool_id,
business_group_id,
abp_attribute_category,
abp_attribute1,
abp_attribute2,
abp_attribute3,
abp_attribute4,
abp_attribute5,
abp_attribute6,
abp_attribute7,
abp_attribute8,
abp_attribute9,
abp_attribute10,
abp_attribute11,
abp_attribute12,
abp_attribute13,
abp_attribute14,
abp_attribute15,
abp_attribute16,
abp_attribute17,
abp_attribute18,
abp_attribute19,
abp_attribute20,
abp_attribute21,
abp_attribute22,
abp_attribute23,
abp_attribute24,
abp_attribute25,
abp_attribute26,
abp_attribute27,
abp_attribute28,
abp_attribute29,
abp_attribute30,
object_version_number
from ben_aplcn_to_bnft_pool_f
where aplcn_to_bnft_pool_id = p_aplcn_to_bnft_pool_id
and p_effective_date
between effective_start_date and effective_end_date
for update nowait;
If (p_datetrack_mode <> 'INSERT') then
--
-- We must select and lock the current row.
--
Open C_Sel1;