The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
emp_state_tax_rule_id,
effective_start_date,
effective_end_date,
assignment_id,
state_code,
jurisdiction_code,
business_group_id,
additional_wa_amount,
filing_status_code,
remainder_percent,
secondary_wa,
sit_additional_tax,
sit_override_amount,
sit_override_rate,
withholding_allowances,
excessive_wa_reject_date,
sdi_exempt,
sit_exempt,
sit_optional_calc_ind,
state_non_resident_cert,
sui_exempt,
wc_exempt,
wage_exempt,
sui_wage_base_override_amount,
supp_tax_override_rate,
object_version_number,
attribute_category,
attribute1,
attribute2,
attribute3,
attribute4,
attribute5,
attribute6,
attribute7,
attribute8,
attribute9,
attribute10,
attribute11,
attribute12,
attribute13,
attribute14,
attribute15,
attribute16,
attribute17,
attribute18,
attribute19,
attribute20,
attribute21,
attribute22,
attribute23,
attribute24,
attribute25,
attribute26,
attribute27,
attribute28,
attribute29,
attribute30,
sta_information_category,
sta_information1,
sta_information2,
sta_information3,
sta_information4,
sta_information5,
sta_information6,
sta_information7,
sta_information8,
sta_information9,
sta_information10,
sta_information11,
sta_information12,
sta_information13,
sta_information14,
sta_information15,
sta_information16,
sta_information17,
sta_information18,
sta_information19,
sta_information20,
sta_information21,
sta_information22,
sta_information23,
sta_information24,
sta_information25,
sta_information26,
sta_information27,
sta_information28,
sta_information29,
sta_information30
from pay_us_emp_state_tax_rules_f
where emp_state_tax_rule_id = p_emp_state_tax_rule_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';
p_delete => p_delete,
p_future_change => p_future_change,
p_delete_next_change => p_delete_next_change);
p_delete := false;
p_delete_next_change := false;
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 pay_us_emp_state_tax_rules_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.emp_state_tax_rule_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
emp_state_tax_rule_id,
effective_start_date,
effective_end_date,
assignment_id,
state_code,
jurisdiction_code,
business_group_id,
additional_wa_amount,
filing_status_code,
remainder_percent,
secondary_wa,
sit_additional_tax,
sit_override_amount,
sit_override_rate,
withholding_allowances,
excessive_wa_reject_date,
sdi_exempt,
sit_exempt,
sit_optional_calc_ind,
state_non_resident_cert,
sui_exempt,
wc_exempt,
wage_exempt,
sui_wage_base_override_amount,
supp_tax_override_rate,
object_version_number,
attribute_category,
attribute1,
attribute2,
attribute3,
attribute4,
attribute5,
attribute6,
attribute7,
attribute8,
attribute9,
attribute10,
attribute11,
attribute12,
attribute13,
attribute14,
attribute15,
attribute16,
attribute17,
attribute18,
attribute19,
attribute20,
attribute21,
attribute22,
attribute23,
attribute24,
attribute25,
attribute26,
attribute27,
attribute28,
attribute29,
attribute30,
sta_information_category,
sta_information1,
sta_information2,
sta_information3,
sta_information4,
sta_information5,
sta_information6,
sta_information7,
sta_information8,
sta_information9,
sta_information10,
sta_information11,
sta_information12,
sta_information13,
sta_information14,
sta_information15,
sta_information16,
sta_information17,
sta_information18,
sta_information19,
sta_information20,
sta_information21,
sta_information22,
sta_information23,
sta_information24,
sta_information25,
sta_information26,
sta_information27,
sta_information28,
sta_information29,
sta_information30
from pay_us_emp_state_tax_rules_f
where emp_state_tax_rule_id = p_emp_state_tax_rule_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;