The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
prtt_prem_id,
effective_start_date,
effective_end_date,
std_prem_uom,
std_prem_val,
actl_prem_id,
prtt_enrt_rslt_id,
per_in_ler_id,
business_group_id,
ppe_attribute_category,
ppe_attribute1,
ppe_attribute2,
ppe_attribute3,
ppe_attribute4,
ppe_attribute5,
ppe_attribute6,
ppe_attribute7,
ppe_attribute8,
ppe_attribute9,
ppe_attribute10,
ppe_attribute11,
ppe_attribute12,
ppe_attribute13,
ppe_attribute14,
ppe_attribute15,
ppe_attribute16,
ppe_attribute17,
ppe_attribute18,
ppe_attribute19,
ppe_attribute20,
ppe_attribute21,
ppe_attribute22,
ppe_attribute23,
ppe_attribute24,
ppe_attribute25,
ppe_attribute26,
ppe_attribute27,
ppe_attribute28,
ppe_attribute29,
ppe_attribute30,
object_version_number,
request_id,
program_application_id,
program_id,
program_update_date
from ben_prtt_prem_f
where prtt_prem_id = p_prtt_prem_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.actl_prem_id,
t.prtt_enrt_rslt_id
from ben_prtt_prem_f t
where t.prtt_prem_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_prtt_prem_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.prtt_prem_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
prtt_prem_id,
effective_start_date,
effective_end_date,
std_prem_uom,
std_prem_val,
actl_prem_id,
prtt_enrt_rslt_id,
per_in_ler_id,
business_group_id,
ppe_attribute_category,
ppe_attribute1,
ppe_attribute2,
ppe_attribute3,
ppe_attribute4,
ppe_attribute5,
ppe_attribute6,
ppe_attribute7,
ppe_attribute8,
ppe_attribute9,
ppe_attribute10,
ppe_attribute11,
ppe_attribute12,
ppe_attribute13,
ppe_attribute14,
ppe_attribute15,
ppe_attribute16,
ppe_attribute17,
ppe_attribute18,
ppe_attribute19,
ppe_attribute20,
ppe_attribute21,
ppe_attribute22,
ppe_attribute23,
ppe_attribute24,
ppe_attribute25,
ppe_attribute26,
ppe_attribute27,
ppe_attribute28,
ppe_attribute29,
ppe_attribute30,
object_version_number,
request_id,
program_application_id,
program_id,
program_update_date
from ben_prtt_prem_f
where prtt_prem_id = p_prtt_prem_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;
p_program_update_date in date
)
Return g_rec_type is
--
l_rec g_rec_type;
l_rec.program_update_date := p_program_update_date;