The following lines contain the word 'select', 'insert', 'update' or 'delete':
select null
from hr_all_organization_units org,
ben_popl_org_f pop
where org.organization_id = p_organization_id
and pop.organization_id = org.organization_id
and pop.pl_id = p_pl_id
and p_effective_date between
nvl(org.date_from, p_effective_date) and
nvl(org.date_to, p_effective_date)
and p_effective_date between
pop.effective_start_date and pop.effective_end_date
and pop.business_group_id = p_business_group_id
and org.business_group_id = p_business_group_id;
select null
from hr_all_organization_units org,
ben_popl_org_f pop,
ben_oipl_f cop
where org.organization_id = p_organization_id
and pop.organization_id = org.organization_id
and cop.oipl_id = p_oipl_id
and cop.pl_id = pop.pl_id
and p_effective_date between
nvl(org.date_from, p_effective_date) and
nvl(org.date_to, p_effective_date)
and p_effective_date between
pop.effective_start_date and pop.effective_end_date
and p_effective_date between
cop.effective_start_date and cop.effective_end_date
and pop.business_group_id = p_business_group_id
and cop.business_group_id = p_business_group_id
and org.business_group_id = p_business_group_id;
select null
from ff_formulas_f ff
,per_business_groups pbg
where ff.formula_id = p_rndg_rl
and ff.formula_type_id = -169
and pbg.business_group_id = p_business_group_id
and nvl(ff.business_group_id, p_business_group_id) =
p_business_group_id
and nvl(ff.legislation_code, pbg.legislation_code) =
pbg.legislation_code
and p_effective_date
between ff.effective_start_date
and ff.effective_end_date;
select null
from ff_formulas_f ff
,per_business_groups pbg
where ff.formula_id = p_val_calc_rl
and ff.formula_type_id = -507
and pbg.business_group_id = p_business_group_id
and nvl(ff.business_group_id, p_business_group_id) =
p_business_group_id
and nvl(ff.legislation_code, pbg.legislation_code) =
pbg.legislation_code
and p_effective_date
between ff.effective_start_date
and ff.effective_end_date;
select null
from ff_formulas_f ff
,per_business_groups pbg
where ff.formula_id = p_vrbl_rt_add_on_calc_rl
and ff.formula_type_id = -529
and pbg.business_group_id = p_business_group_id
and nvl(ff.business_group_id, p_business_group_id) =
p_business_group_id
and nvl(ff.legislation_code, pbg.legislation_code) =
pbg.legislation_code
and p_effective_date
between ff.effective_start_date
and ff.effective_end_date;
select null
from ben_actl_prem_f
where name = p_name
and actl_prem_id <> nvl(p_actl_prem_id, hr_api.g_number)
and business_group_id + 0 = p_business_group_id
and p_validation_start_date <= effective_end_date
and p_validation_end_date >= effective_start_date;
select vpf.mlt_cd, vpf.vrbl_rt_trtmt_cd
from ben_vrbl_rt_prfl_f vpf,
ben_actl_prem_vrbl_rt_f apv
where apv.business_group_id +0 = p_business_group_id
and vpf.business_group_id +0 = p_business_group_id
and apv.actl_prem_id = p_actl_prem_id
and vpf.vrbl_rt_prfl_id = apv.vrbl_rt_prfl_id
and p_effective_date
between vpf.effective_start_date
and vpf.effective_end_date
and p_effective_date + 1
between apv.effective_start_date
and apv.effective_end_date;
select null
from ff_formulas_f ff,
per_business_groups pbg
where ff.formula_id = p_rule
and ff.formula_type_id = p_rule_type_id
and pbg.business_group_id = p_business_group_id
and nvl(ff.business_group_id,p_business_group_id) =
p_business_group_id
and nvl(ff.legislation_code,pbg.legislation_code) =
pbg.legislation_code
and p_effective_date
between ff.effective_start_date
and ff.effective_end_date;
select a.actl_prem_id from ben_prem_cstg_by_sgmt_f a
where a.business_group_id +0 = p_business_group_id
and a.actl_prem_id = p_actl_prem_id;
Procedure dt_update_validate
(p_comp_lvl_fctr_id in number default hr_api.g_number,
p_datetrack_mode in varchar2,
p_validation_start_date in date,
p_validation_end_date in date) Is
--
l_proc varchar2(72) := g_package||'dt_update_validate';
End dt_update_validate;
Procedure dt_delete_validate
(p_actl_prem_id in number,
p_datetrack_mode in varchar2,
p_validation_start_date in date,
p_validation_end_date in date) Is
--
l_proc varchar2(72) := g_package||'dt_delete_validate';
If (p_datetrack_mode = 'DELETE' or
p_datetrack_mode = 'ZAP') then
--
--
-- Ensure the arguments are not null
--
hr_api.mandatory_arg_error
(p_api_name => l_proc,
p_argument => 'validation_start_date',
p_argument_value => p_validation_start_date);
end dt_delete_validate;
select cvg.name
from ben_pl_f coa,ben_cvg_amt_calc_mthd_f cvg
where coa.pl_id = p_pl_id
and coa.pl_id = cvg.pl_id (+)
and coa.business_group_id = p_business_group_id
union
select cvg.name
from ben_oipl_f coa,ben_cvg_amt_calc_mthd_f cvg
where coa.oipl_id = p_oipl_id
and coa.oipl_id = cvg.oipl_id (+)
and coa.business_group_id = p_business_group_id;
Procedure insert_validate
(p_rec in ben_apr_shd.g_rec_type,
p_effective_date in date,
p_datetrack_mode in varchar2,
p_validation_start_date in date,
p_validation_end_date in date) is
--
l_proc varchar2(72) := g_package||'insert_validate';
End insert_validate;
Procedure update_validate
(p_rec in ben_apr_shd.g_rec_type,
p_effective_date in date,
p_datetrack_mode in varchar2,
p_validation_start_date in date,
p_validation_end_date in date) is
--
l_proc varchar2(72) := g_package||'update_validate';
dt_update_validate
(p_comp_lvl_fctr_id => p_rec.comp_lvl_fctr_id,
p_datetrack_mode => p_datetrack_mode,
p_validation_start_date => p_validation_start_date,
p_validation_end_date => p_validation_end_date);
End update_validate;
Procedure delete_validate
(p_rec in ben_apr_shd.g_rec_type,
p_effective_date in date,
p_datetrack_mode in varchar2,
p_validation_start_date in date,
p_validation_end_date in date) is
--
l_proc varchar2(72) := g_package||'delete_validate';
dt_delete_validate
(p_datetrack_mode => p_datetrack_mode,
p_validation_start_date => p_validation_start_date,
p_validation_end_date => p_validation_end_date,
p_actl_prem_id => p_rec.actl_prem_id);
End delete_validate;
select a.legislation_code
from per_business_groups a,
ben_actl_prem_f b
where b.actl_prem_id = p_actl_prem_id
and a.business_group_id = b.business_group_id;