The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
hrs_wkd_in_perd_rt_id,
effective_start_date,
effective_end_date,
business_group_id,
hrs_wkd_in_perd_fctr_id,
vrbl_rt_prfl_id,
ordr_num,
excld_flag,
hwr_attribute_category,
hwr_attribute1,
hwr_attribute2,
hwr_attribute3,
hwr_attribute4,
hwr_attribute5,
hwr_attribute6,
hwr_attribute7,
hwr_attribute8,
hwr_attribute9,
hwr_attribute10,
hwr_attribute11,
hwr_attribute12,
hwr_attribute13,
hwr_attribute14,
hwr_attribute15,
hwr_attribute16,
hwr_attribute17,
hwr_attribute18,
hwr_attribute19,
hwr_attribute20,
hwr_attribute21,
hwr_attribute22,
hwr_attribute23,
hwr_attribute24,
hwr_attribute25,
hwr_attribute26,
hwr_attribute27,
hwr_attribute28,
hwr_attribute29,
hwr_attribute30,
object_version_number
from ben_hrs_wkd_in_perd_rt_f
where hrs_wkd_in_perd_rt_id = p_hrs_wkd_in_perd_rt_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.vrbl_rt_prfl_id
from ben_hrs_wkd_in_perd_rt_f t
where t.hrs_wkd_in_perd_rt_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_hrs_wkd_in_perd_rt_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.hrs_wkd_in_perd_rt_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
hrs_wkd_in_perd_rt_id,
effective_start_date,
effective_end_date,
business_group_id,
hrs_wkd_in_perd_fctr_id,
vrbl_rt_prfl_id,
ordr_num,
excld_flag,
hwr_attribute_category,
hwr_attribute1,
hwr_attribute2,
hwr_attribute3,
hwr_attribute4,
hwr_attribute5,
hwr_attribute6,
hwr_attribute7,
hwr_attribute8,
hwr_attribute9,
hwr_attribute10,
hwr_attribute11,
hwr_attribute12,
hwr_attribute13,
hwr_attribute14,
hwr_attribute15,
hwr_attribute16,
hwr_attribute17,
hwr_attribute18,
hwr_attribute19,
hwr_attribute20,
hwr_attribute21,
hwr_attribute22,
hwr_attribute23,
hwr_attribute24,
hwr_attribute25,
hwr_attribute26,
hwr_attribute27,
hwr_attribute28,
hwr_attribute29,
hwr_attribute30,
object_version_number
from ben_hrs_wkd_in_perd_rt_f
where hrs_wkd_in_perd_rt_id = p_hrs_wkd_in_perd_rt_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;