The following lines contain the word 'select', 'insert', 'update' or 'delete':
select null
from ben_elig_comp_lvl_prte_f
where comp_lvl_fctr_id = p_comp_lvl_fctr_id
and eligy_prfl_id = p_eligy_prfl_id
and elig_comp_lvl_prte_id <> nvl(p_elig_comp_lvl_prte_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 null
from ben_comp_lvl_fctr a
where a.comp_lvl_fctr_id = p_comp_lvl_fctr_id;
select null
from ben_elig_per_typ_prte_f b
where b.eligy_prfl_id = p_eligy_prfl_id
and b.per_typ_cd NOT IN ('EMP', 'EMP_APL')
and b.excld_flag = 'N';
select null
from ben_elig_per_typ_prte_f b ,
per_person_types ppt
where b.eligy_prfl_id = p_eligy_prfl_id
and b.person_type_id =ppt.person_type_id
and ppt.system_person_type NOT IN ('EMP', 'EMP_APL')
and b.excld_flag = 'N';
select null
from per_assignment_status_types a,
ben_elig_ee_stat_prte_f b
where b.eligy_prfl_id = p_eligy_prfl_id
and b.assignment_status_type_id = a.assignment_status_type_id
and a.per_system_status = 'TERM_ASSIGN'
and b.excld_flag = 'N';
select null
from ben_elig_comp_lvl_prte_f
where elig_comp_lvl_prte_id <> nvl(p_elig_comp_lvl_prte_id,-1)
and eligy_prfl_id = p_eligy_prfl_id
and ordr_num = p_ordr_num
and business_group_id = p_business_group_id;
Procedure dt_update_validate
(p_eligy_prfl_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_elig_comp_lvl_prte_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_ecl_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_ecl_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_eligy_prfl_id => p_rec.eligy_prfl_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_ecl_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_elig_comp_lvl_prte_id => p_rec.elig_comp_lvl_prte_id);
End delete_validate;
select a.legislation_code
from per_business_groups a,
ben_elig_comp_lvl_prte_f b
where b.elig_comp_lvl_prte_id = p_elig_comp_lvl_prte_id
and a.business_group_id = b.business_group_id;