The following lines contain the word 'select', 'insert', 'update' or 'delete':
select null
from ben_rptg_grp bnr
where bnr.rptg_grp_id = p_rptg_grp_id
and nvl(bnr.business_group_id,p_business_group_id) <> p_business_group_id ;
select null
from ben_rptg_grp a
where a.rptg_grp_id = p_rptg_grp_id;
select null
from ben_popl_rptg_grp_f
where pl_id = p_pl_id
and rptg_grp_id = nvl(p_rptg_grp_id, hr_api.g_number)
and business_group_id + 0 = p_business_group_id
and p_validate_start_date <= effective_end_date
and p_validate_end_date >= effective_start_date;
select rptg_prps_cd
from ben_rptg_grp
where rptg_grp_id = p_rptg_grp_id;
select null
from ben_pl_f pln, ben_pl_typ_f ptp
where pln.pl_id = p_pl_id
and p_validate_start_date <= pln.effective_end_date
and p_validate_end_date >= pln.effective_start_date
and pln.pl_typ_id = ptp.pl_typ_id
and ptp.opt_typ_cd <> 'COMP'
and ptp.business_group_id = p_business_group_id
and greatest(p_validate_start_date, pln.effective_start_date) <= ptp.effective_end_date
and least(p_validate_end_date, pln.effective_end_date) >= ptp.effective_start_date;
select null
from ben_popl_rptg_grp_f
where pgm_id = p_pgm_id
and rptg_grp_id = nvl(p_rptg_grp_id, hr_api.g_number)
and business_group_id + 0 = p_business_group_id
and p_validate_start_date <= effective_end_date
and p_validate_end_date >= effective_start_date;
Procedure dt_update_validate
(p_pgm_id in number default hr_api.g_number,
p_pl_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_popl_rptg_grp_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_rgr_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_rgr_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_pgm_id => p_rec.pgm_id,
p_pl_id => p_rec.pl_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_rgr_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_popl_rptg_grp_id => p_rec.popl_rptg_grp_id);
End delete_validate;
select a.legislation_code
from per_business_groups a,
ben_popl_rptg_grp_f b
where b.popl_rptg_grp_id = p_popl_rptg_grp_id
and a.business_group_id = b.business_group_id;