The following lines contain the word 'select', 'insert', 'update' or 'delete':
select NULL
from ben_eligy_criteria
where eligy_criteria_id = p_eligy_criteria_id;
select NULL
from ben_eligy_prfl_f
where eligy_prfl_id = p_eligy_prfl_id;
select null
from ben_eligy_crit_values_f ecv
where ecv.eligy_prfl_id = p_eligy_prfl_id
and ecv.eligy_criteria_id = p_eligy_criteria_id
and ecv.eligy_crit_values_id <> nvl ( p_eligy_crit_values_id, -1)
and nvl(ecv.number_value1,hr_api.g_number) = nvl(p_number_value1,hr_api.g_number)
and nvl(ecv.number_value2,hr_api.g_number) = nvl(p_number_value2,hr_api.g_number)
and nvl(ecv.char_value1,hr_api.g_varchar2) = nvl(p_char_value1,hr_api.g_varchar2)
and nvl(ecv.char_value2,hr_api.g_varchar2) = nvl(p_char_value2,hr_api.g_varchar2)
and nvl(ecv.date_value1,hr_api.g_date) = nvl (p_date_value1,hr_api.g_date)
and nvl(ecv.date_value2,hr_api.g_date) = nvl (p_date_value2,hr_api.g_date)
and nvl(ecv.number_value3,hr_api.g_number) = nvl(p_number_value3,hr_api.g_number)
and nvl(ecv.number_value4,hr_api.g_number) = nvl(p_number_value4,hr_api.g_number)
and nvl(ecv.char_value3,hr_api.g_varchar2) = nvl(p_char_value3,hr_api.g_varchar2)
and nvl(ecv.char_value4,hr_api.g_varchar2) = nvl(p_char_value4,hr_api.g_varchar2)
and nvl(ecv.date_value3,hr_api.g_date) = nvl (p_date_value3,hr_api.g_date)
and nvl(ecv.date_value4,hr_api.g_date) = nvl (p_date_value4,hr_api.g_date)
and ecv.effective_start_date <= p_validation_end_date
and ecv.effective_end_date >= p_validation_start_date
and ecv.business_group_id = p_business_group_id;
select null
from ben_eligy_crit_values_f
where eligy_crit_values_id <> nvl( p_eligy_crit_values_id, -1 )
and eligy_prfl_id = p_eligy_prfl_id
and ordr_num = p_ordr_num
and business_group_id = p_business_group_id
and effective_start_date <= p_validation_end_date
and effective_end_date >= p_validation_start_date;
select crit_col1_val_type_cd, crit_col1_datatype, col1_lookup_type, allow_range_validation_flag,
crit_col2_val_type_cd, crit_col2_datatype, col2_lookup_type, allow_range_validation_flag2
from ben_eligy_criteria egl
where egl.eligy_criteria_id = p_eligy_criteria_id
and egl.business_group_id = p_business_group_id;
select null
from per_org_structure_versions osv
where osv.business_group_id = p_business_group_id
and osv.org_structure_version_id = p_number_value1
and p_effective_date between osv.date_from
and nvl (osv.date_to, p_effective_date );
select null
from per_org_structure_elements ose
where ose.org_structure_version_id = p_number_value1
and ( ose.organization_id_parent = p_number_value2 or
ose.organization_id_child = p_number_value2
);
select null
from per_pos_structure_versions psv
where psv.business_group_id = p_business_group_id
and psv.pos_structure_version_id = p_number_value1
and p_effective_date between psv.date_from
and nvl (psv.date_to, p_effective_date );
select null
from per_pos_structure_elements pse
where pse.pos_structure_version_id = p_number_value1
and ( pse.parent_position_id = p_number_value2 or
pse.subordinate_position_id = p_number_value2
);
select null
from per_org_structure_versions osv
where osv.business_group_id = p_business_group_id
and osv.org_structure_version_id = p_number_value3
and p_effective_date between osv.date_from
and nvl (osv.date_to, p_effective_date );
select null
from per_org_structure_elements ose
where ose.org_structure_version_id = p_number_value3
and ( ose.organization_id_parent = p_number_value4 or
ose.organization_id_child = p_number_value4
);
select null
from per_pos_structure_versions psv
where psv.business_group_id = p_business_group_id
and psv.pos_structure_version_id = p_number_value3
and p_effective_date between psv.date_from
and nvl (psv.date_to, p_effective_date );
select null
from per_pos_structure_elements pse
where pse.pos_structure_version_id = p_number_value3
and ( pse.parent_position_id = p_number_value4 or
pse.subordinate_position_id = p_number_value4
);
procedure dt_update_validate
(p_eligy_criteria_id In number default hr_api.g_number,
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_eligy_crit_values_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_ecv_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_ecv_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_criteria_id => p_rec.eligy_criteria_id,
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_ecv_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_eligy_crit_values_id => p_rec.eligy_crit_values_id,
p_datetrack_mode => p_datetrack_mode,
p_validation_start_date => p_validation_start_date,
p_validation_end_date => p_validation_end_date
);
end delete_validate;
select a.legislation_code
from per_business_groups a,
ben_eligy_crit_values_f b
where b.eligy_crit_values_id = p_eligy_crit_values_id
and a.business_group_id = b.business_group_id;