The following lines contain the word 'select', 'insert', 'update' or 'delete':
select business_group_id
from per_grades pg
where pg.grade_id = p_grade_or_spinal_point_id
and p_effective_start_date between pg.date_from
and nvl(pg.date_to, hr_api.g_eot)
and p_effective_end_date <= nvl(pg.date_to, hr_api.g_eot);
select business_group_id
from per_spinal_points psp
where psp.spinal_point_id = p_grade_or_spinal_point_id;
select null
from pay_grade_rules_f pgr
where pgr.rate_id = p_rate_id
and pgr.business_group_id = p_business_group_id
and pgr.rate_type = p_rate_type
and pgr.grade_or_spinal_point_id = p_grade_or_spinal_point_id
and p_effective_date between pgr.effective_start_date
and pgr.effective_end_date;
select business_group_id
from pay_rates pr
where pr.rate_id = p_rate_id;
select null
from pay_rates pr
where pr.rate_id = p_rate_id
and pr.rate_type = p_rate_type;
select pr.rate_uom
, pbg.currency_code
from per_business_groups pbg
, pay_rates pr
where pr.rate_id = p_rate_id
and pbg.business_group_id = pr.business_group_id;
select pr.rate_uom
, pbg.currency_code
from per_business_groups pbg
, pay_rates pr
where pr.rate_id = p_rate_id
and pbg.business_group_id = pr.business_group_id;
select pr.rate_uom
, pbg.currency_code
from per_business_groups pbg
, pay_rates pr
where pr.rate_id = p_rate_id
and pbg.business_group_id = pr.business_group_id;
select null
from per_grades pg
where pg.grade_id = p_grade_or_spinal_point_id
and pg.sequence = p_sequence
and p_effective_start_date between pg.date_from
and nvl(pg.date_to, hr_api.g_eot)
and p_effective_end_date <= nvl(pg.date_to, hr_api.g_eot);
select null
from per_spinal_points psp
where psp.spinal_point_id = p_grade_or_spinal_point_id
and psp.sequence = p_sequence;
select pr.rate_uom
, pbg.currency_code
from per_business_groups pbg
, pay_rates pr
where pr.rate_id = p_rate_id
and pbg.business_group_id = pr.business_group_id;
Procedure check_non_updateable_args(p_rec in pay_grr_shd.g_rec_type
,p_effective_date in date) is
--
l_proc varchar2(72) := g_package||'check_non_updateable_args';
end check_non_updateable_args;
Procedure dt_update_validate
(
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_grade_rule_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 pay_grr_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 pay_grr_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';
check_non_updateable_args(p_rec => p_rec
,p_effective_date => p_effective_date);
dt_update_validate
(
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 pay_grr_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_grade_rule_id => p_rec.grade_rule_id);
End delete_validate;
select pbg.legislation_code
from per_business_groups pbg
, pay_grade_rules_f pgr
where pgr.grade_rule_id = p_grade_rule_id
and pbg.business_group_id = pgr.business_group_id
order by pgr.effective_start_date;