The following lines contain the word 'select', 'insert', 'update' or 'delete':
select pbg.security_group_id,
pbg.legislation_code
from per_business_groups_perf pbg
, per_competence_outcomes cpo
where cpo.outcome_id = p_outcome_id;
select pbg.legislation_code
from per_business_groups_perf pbg
, per_competence_outcomes cpo
where cpo.outcome_id = p_outcome_id;
Procedure chk_non_updateable_args
(p_effective_date in date
,p_rec in per_cpo_shd.g_rec_type
) IS
--
l_proc varchar2(72) := g_package || 'chk_non_updateable_args';
End chk_non_updateable_args;
select '1' from per_competences
where competence_id = p_competence_id;
select null from per_competence_outcomes
where competence_id = p_competence_id
and outcome_number = p_outcome_number
and (p_date_from <= nvl(date_to, hr_api.g_eot)
and NVL(p_date_to, hr_api.g_eot) >= date_from);
select null from per_competence_outcomes
where outcome_id <> p_outcome_id
and competence_id = p_competence_id
and outcome_number = p_outcome_number
and (p_date_from <= nvl(date_to, hr_api.g_eot)
and NVL(p_date_to, hr_api.g_eot) >= date_from);
select null from per_competence_outcomes
where competence_id = p_competence_id
and name = p_name
and (p_date_from <= nvl(date_to, hr_api.g_eot)
and NVL(p_date_to, hr_api.g_eot) >= date_from);
select null from per_competence_outcomes
where outcome_id <> p_outcome_id
and competence_id = p_competence_id
and name = p_name
and (p_date_from <= nvl(date_to, hr_api.g_eot)
and NVL(p_date_to, hr_api.g_eot) >= date_from);
PROCEDURE chk_delete(
p_outcome_id in per_competence_outcomes.outcome_id%TYPE
) is
--
l_proc varchar2(72) := g_package||'chk_delete';
select 'x'
FROM per_comp_element_outcomes
WHERE outcome_id = p_outcome_id;
end chk_delete;
Procedure insert_validate
(p_effective_date in date
,p_rec in per_cpo_shd.g_rec_type
) is
--
l_proc varchar2(72) := g_package||'insert_validate';
End insert_validate;
Procedure update_validate
(p_effective_date in date
,p_rec in per_cpo_shd.g_rec_type
) is
--
l_proc varchar2(72) := g_package||'update_validate';
chk_non_updateable_args
(p_effective_date => p_effective_date
,p_rec => p_rec
);
End update_validate;
Procedure delete_validate
(p_rec in per_cpo_shd.g_rec_type
) is
--
l_proc varchar2(72) := g_package||'delete_validate';
chk_delete
(p_outcome_id => p_rec.outcome_id
);
End delete_validate;