The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
ELIG_TTL_PRTT_PRTE_id,
effective_start_date,
effective_end_date,
business_group_id,
excld_flag,
no_mn_prtt_num_apls_flag,
no_mx_prtt_num_apls_flag,
ordr_num,
mn_prtt_num,
mx_prtt_num,
prtt_det_cd,
prtt_det_rl,
eligy_prfl_id,
etp_attribute_category,
etp_attribute1,
etp_attribute2,
etp_attribute3,
etp_attribute4,
etp_attribute5,
etp_attribute6,
etp_attribute7,
etp_attribute8,
etp_attribute9,
etp_attribute10,
etp_attribute11,
etp_attribute12,
etp_attribute13,
etp_attribute14,
etp_attribute15,
etp_attribute16,
etp_attribute17,
etp_attribute18,
etp_attribute19,
etp_attribute20,
etp_attribute21,
etp_attribute22,
etp_attribute23,
etp_attribute24,
etp_attribute25,
etp_attribute26,
etp_attribute27,
etp_attribute28,
etp_attribute29,
etp_attribute30,
object_version_number
from ben_ELIG_TTL_PRTT_PRTE_f
where ELIG_TTL_PRTT_PRTE_id = p_ELIG_TTL_PRTT_PRTE_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.eligy_prfl_id
from ben_ELIG_TTL_PRTT_PRTE_f t
where t.ELIG_TTL_PRTT_PRTE_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_ELIG_TTL_PRTT_PRTE_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.ELIG_TTL_PRTT_PRTE_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
ELIG_TTL_PRTT_PRTE_id,
effective_start_date,
effective_end_date,
business_group_id,
excld_flag,
no_mn_prtt_num_apls_flag,
no_mx_prtt_num_apls_flag,
ordr_num,
mn_prtt_num,
mx_prtt_num,
prtt_det_cd,
prtt_det_rl,
eligy_prfl_id,
etp_attribute_category,
etp_attribute1,
etp_attribute2,
etp_attribute3,
etp_attribute4,
etp_attribute5,
etp_attribute6,
etp_attribute7,
etp_attribute8,
etp_attribute9,
etp_attribute10,
etp_attribute11,
etp_attribute12,
etp_attribute13,
etp_attribute14,
etp_attribute15,
etp_attribute16,
etp_attribute17,
etp_attribute18,
etp_attribute19,
etp_attribute20,
etp_attribute21,
etp_attribute22,
etp_attribute23,
etp_attribute24,
etp_attribute25,
etp_attribute26,
etp_attribute27,
etp_attribute28,
etp_attribute29,
etp_attribute30,
object_version_number
from ben_ELIG_TTL_PRTT_PRTE_f
where ELIG_TTL_PRTT_PRTE_id = p_ELIG_TTL_PRTT_PRTE_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;