The following lines contain the word 'select', 'insert', 'update' or 'delete':
select 'X'
from pqh_corps_extra_info
where information_type ='GRADE'
and corps_definition_id = p_rec.corps_definition_id
and information3 = p_rec.information3;
select 'X'
from pqh_corps_extra_info
where information_type ='ORGANIZATION'
and corps_definition_id = p_rec.corps_definition_id
and information3 = p_rec.information3;
select sum(information4)
into l_grade_quota
from pqh_corps_extra_info
where corps_definition_id = p_rec.corps_definition_id
and information_type ='GRADE'
and corps_extra_info_id <> nvl(p_rec.corps_extra_info_id,corps_extra_info_id);
select 'X'
from pqh_corps_extra_info
where information_type ='TRAINING'
and corps_definition_id = p_rec.corps_definition_id
and corps_extra_info_id <> nvl(p_rec.corps_extra_info_id,-1)
and information3 = p_rec.information3
and information4 = p_rec.information4
and information5 = p_rec.information5
and information6 = p_rec.information6
and information7 = p_rec.information7;
select 'X'
from pqh_corps_extra_info
where information_type ='EXAM'
and corps_definition_id = p_rec.corps_definition_id
and corps_extra_info_id <> nvl(p_rec.corps_extra_info_id,-1)
and information3 = p_rec.information3
and information4 = p_rec.information4
and information5 = p_rec.information5
and information6 = p_rec.information6;
select 'X'
from pqh_corps_extra_info
where information_type ='RULES'
and corps_definition_id = p_rec.corps_definition_id
and corps_extra_info_id <> nvl(p_rec.corps_extra_info_id,-1)
and information3 = p_rec.information3
and information4 = p_rec.information4
and information5 = p_rec.information5
and information6 = p_rec.information6
and information7 = p_rec.information7;
select 'X'
from pqh_corps_extra_info
where information_type ='DOCUMENT'
and corps_definition_id = p_rec.corps_definition_id
and corps_extra_info_id <> nvl(p_rec.corps_extra_info_id, -1)
and information3 = p_rec.information3
and information4 = p_rec.information4
and information5 = p_rec.information5
and information6 = p_rec.information6;
select pbg.security_group_id
from per_business_groups pbg
, pqh_corps_extra_info cei
-- , EDIT_HERE table_name(s) 333
where cei.corps_extra_info_id = p_corps_extra_info_id;
select pbg.legislation_code
from per_business_groups pbg
, pqh_corps_extra_info cei
-- , EDIT_HERE table_name(s) 333
where cei.corps_extra_info_id = p_corps_extra_info_id;
Procedure chk_non_updateable_args
(p_effective_date in date
,p_rec in pqh_cei_shd.g_rec_type
) IS
--
l_proc varchar2(72) := g_package || 'chk_non_updateable_args';
End chk_non_updateable_args;
Procedure insert_validate
(p_effective_date in date
,p_rec in pqh_cei_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 pqh_cei_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 pqh_cei_shd.g_rec_type
) is
--
l_proc varchar2(72) := g_package||'delete_validate';
End delete_validate;