The following lines contain the word 'select', 'insert', 'update' or 'delete':
select null
from ff_formulas_f ff
,per_business_groups pbg
where ff.formula_id = p_val_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_rlovr_val_rl
and ff.formula_type_id = -532 /* */
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_pct_rndg_rl
and ff.formula_type_id = -169 /*default enrollment det */
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_prtt_elig_rlovr_rl
and ff.formula_type_id = -294
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 'x'
from ben_bnft_pool_rlovr_rqmt_f
where bnft_prvdr_pool_id = p_bnft_prvdr_pool_id
and acty_base_rt_id = p_acty_base_rt_id
and bnft_pool_rlovr_rqmt_id <> nvl(p_bnft_pool_rlovr_rqmt_id,-1)
and p_effective_date between effective_start_date
and effective_end_date ;
Procedure dt_update_validate
(p_acty_base_rt_id in number default hr_api.g_number,
p_bnft_prvdr_pool_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_bnft_pool_rlovr_rqmt_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;
Procedure insert_validate
(p_rec in ben_bpr_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_bpr_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_acty_base_rt_id => p_rec.acty_base_rt_id,
p_bnft_prvdr_pool_id => p_rec.bnft_prvdr_pool_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_bpr_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_bnft_pool_rlovr_rqmt_id => p_rec.bnft_pool_rlovr_rqmt_id);
End delete_validate;
select a.legislation_code
from per_business_groups a,
ben_bnft_pool_rlovr_rqmt_f b
where b.bnft_pool_rlovr_rqmt_id = p_bnft_pool_rlovr_rqmt_id
and a.business_group_id = b.business_group_id;