The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
prtt_prem_by_mo_id,
effective_start_date,
effective_end_date,
mnl_adj_flag,
mo_num,
yr_num,
antcpd_prtt_cntr_uom,
antcpd_prtt_cntr_val,
val,
cr_val,
cr_mnl_adj_flag,
alctd_val_flag,
uom,
prtt_prem_id,
cost_allocation_keyflex_id,
business_group_id,
prm_attribute_category,
prm_attribute1,
prm_attribute2,
prm_attribute3,
prm_attribute4,
prm_attribute5,
prm_attribute6,
prm_attribute7,
prm_attribute8,
prm_attribute9,
prm_attribute10,
prm_attribute11,
prm_attribute12,
prm_attribute13,
prm_attribute14,
prm_attribute15,
prm_attribute16,
prm_attribute17,
prm_attribute18,
prm_attribute19,
prm_attribute20,
prm_attribute21,
prm_attribute22,
prm_attribute23,
prm_attribute24,
prm_attribute25,
prm_attribute26,
prm_attribute27,
prm_attribute28,
prm_attribute29,
prm_attribute30,
object_version_number,
request_id,
program_application_id,
program_id,
program_update_date
from ben_prtt_prem_by_mo_f
where prtt_prem_by_mo_id = p_prtt_prem_by_mo_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.prtt_prem_id
from ben_prtt_prem_by_mo_f t
where t.prtt_prem_by_mo_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_by_mo_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.prtt_prem_by_mo_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
prtt_prem_by_mo_id,
effective_start_date,
effective_end_date,
mnl_adj_flag,
mo_num,
yr_num,
antcpd_prtt_cntr_uom,
antcpd_prtt_cntr_val,
val,
cr_val,
cr_mnl_adj_flag,
alctd_val_flag,
uom,
prtt_prem_id,
cost_allocation_keyflex_id,
business_group_id,
prm_attribute_category,
prm_attribute1,
prm_attribute2,
prm_attribute3,
prm_attribute4,
prm_attribute5,
prm_attribute6,
prm_attribute7,
prm_attribute8,
prm_attribute9,
prm_attribute10,
prm_attribute11,
prm_attribute12,
prm_attribute13,
prm_attribute14,
prm_attribute15,
prm_attribute16,
prm_attribute17,
prm_attribute18,
prm_attribute19,
prm_attribute20,
prm_attribute21,
prm_attribute22,
prm_attribute23,
prm_attribute24,
prm_attribute25,
prm_attribute26,
prm_attribute27,
prm_attribute28,
prm_attribute29,
prm_attribute30,
object_version_number,
request_id,
program_application_id,
program_id,
program_update_date
from ben_prtt_prem_by_mo_f
where prtt_prem_by_mo_id = p_prtt_prem_by_mo_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;