The following lines contain the word 'select', 'insert', 'update' or 'delete':
Procedure chk_non_updateable_args
(p_rec in per_pos_shd.g_rec_type
) is
--
l_proc varchar2(72) := g_package||'chk_non_updateable_args';
end chk_non_updateable_args;
select inf.org_information14
from hr_organization_information inf
, per_positions pos
where pos.position_id = p_position_id
and inf.organization_id = pos.business_group_id
and inf.org_information_context || '' = 'Business Group Information';
select 'x'
from per_jobs job
where job.job_id = p_job_id
and job.business_group_id + 0 = p_business_group_id;
select 'x'
from per_jobs job
where job.job_id = p_job_id
and p_date_effective between job.date_from
and nvl(job.date_to,hr_api.g_eot);
select 'x'
from per_organization_units oru
where oru.organization_id = p_organization_id
and oru.business_group_id + 0 = p_business_group_id
and oru.internal_external_flag = 'INT';
select 'x'
from hr_organization_units oru
where oru.organization_id = p_organization_id
and p_date_effective between oru.date_from
and nvl(oru.date_to,hr_api.g_eot);
select 'x'
from per_positions pos
where pos.position_id = p_successor_position_id
and pos.business_group_id + 0 = p_business_group_id
and nvl(pos.date_end,hr_api.g_eot) >= p_date_effective ;
select 'x'
from per_positions pos
where pos.position_id = p_relief_position_id
and pos.business_group_id + 0 = p_business_group_id
and nvl(pos.date_end,hr_api.g_eot) >= p_date_effective ;
select 'x'
from hr_locations loc
where loc.location_id = p_location_id
and p_date_effective < nvl(loc.inactive_date,
hr_api.g_eot);
select 'x'
from per_position_definitions
where position_definition_id = p_position_definition_id;
select 'x'
from fnd_common_lookups
where lookup_type = 'FREQUENCY'
and lookup_code = p_frequency
and enabled_flag = 'Y';
select 'x'
from fnd_common_lookups
where lookup_type = 'QUALIFYING_UNITS'
and lookup_code = p_probation_period_units;
select 'x'
from fnd_common_lookups
where lookup_type = 'YES_NO'
and lookup_code = p_replacement_required_flag;
SELECT 'x'
from dual
where exists
(select null
from hr_all_positions_f pos
where pos.business_group_id = p_business_group_id
and pos.position_definition_id = p_position_definition_id
and pos.position_id <> nvl(p_position_id, -1)
and hr_general.effective_date
between pos.effective_start_date and pos.effective_end_date
) ;
select 'x'
from per_all_positions posn
where posn.name = p_name
and (p_position_id is null or posn.position_id <> p_position_id)
and posn.business_group_id = p_business_group_id;
Procedure insert_validate(p_rec in per_pos_shd.g_rec_type) is
--
l_proc varchar2(72) := g_package||'insert_validate';
End insert_validate;
Procedure update_validate(p_rec in per_pos_shd.g_rec_type) is
--
l_proc varchar2(72) := g_package||'update_validate';
chk_non_updateable_args(p_rec => p_rec);
End update_validate;
Procedure delete_validate(p_rec in per_pos_shd.g_rec_type) is
--
l_proc varchar2(72) := g_package||'delete_validate';
End delete_validate;
select pbg.legislation_code
from per_business_groups pbg
, per_positions pos
where pos.position_id = p_position_id
and pbg.business_group_id = pos.business_group_id;