The following lines contain the word 'select', 'insert', 'update' or 'delete':
select calendar_start_time
from hr_calendars
where calendar_id = p_calendar_id;
select 1
from hr_calendar_usages
where purpose_usage_id = p_purpose_usage_id
and (p_calendar_usage_id is null
or p_calendar_usage_id <> calendar_usage_id)
and primary_key_value = p_primary_key_value
and p_start_date <= end_date
and p_end_date >= start_date;
select 1
from hr_pattern_constructions CON,
hr_pattern_constructions CON2,
hr_calendars CAL
where cal.calendar_id = p_calendar_id
and cal.pattern_id = con.pattern_id
and con.component_pattern_id = con2.pattern_id (+)
and (nvl (con.availability,con2.availability)
not in ('QUALIFYING', 'NON QUALIFYING'));
select pattern_purpose
from hr_pattern_purpose_usages
where purpose_usage_id = p_purpose_usage_id;
select cau.purpose_usage_id,
cau.primary_key_value
from hr_pattern_purpose_usages PPU1,
hr_calendar_usages CAU
where ppu1.pattern_purpose = (
select ppu2.pattern_purpose
from hr_pattern_purpose_usages PPU2
where ppu2.purpose_usage_id = p_purpose_usage_id
and ppu1.hierarchy_level < ppu2.hierarchy_level)
and cau.purpose_usage_id = ppu1.purpose_usage_id
and p_start_date between cau.start_date and cau.end_date
order by ppu1.hierarchy_level desc;
select calendar_id
from hr_calendar_usages
where primary_key_value = p_primary_key_value
and purpose_usage_id = p_purpose_usage_id
and p_start_date between start_date and end_date;
select 1
from per_all_people_f
where person_id = p_primary_key_value
and p_start_date between effective_start_date
and effective_end_date;
select 1
from per_assignments_f
where assignment_id = p_primary_key_value
and p_start_date between effective_start_date
and effective_end_date;
select 1
from hr_locations
where location_id = p_primary_key_value
and p_start_date < nvl (inactive_date, hr_general.end_of_time);
select 1
from per_jobs
where job_id = p_primary_key_value
and p_start_date between date_from
and nvl (date_to, hr_general.end_of_time);
select 1
from per_business_groups_perf
where business_group_id = p_primary_key_value
and p_start_date between date_from
and nvl (date_to, hr_general.end_of_time);
select 1
from hr_positions_f
where position_id = p_primary_key_value
and p_start_date between date_effective
and nvl (hr_general.get_position_date_end(position_id), hr_general.end_of_time);
select entity_name
from hr_pattern_purpose_usages
where purpose_usage_id = p_purpose_usage_id;
Procedure insert_validate(p_rec in out nocopy hr_cau_shd.g_rec_type) is
--
l_proc varchar2(72) := g_package||'insert_validate';
End insert_validate;
Procedure update_validate(p_rec in hr_cau_shd.g_rec_type) is
--
l_proc varchar2(72) := g_package||'update_validate';
End update_validate;
Procedure delete_validate(p_rec in hr_cau_shd.g_rec_type) is
--
l_proc varchar2(72) := g_package||'delete_validate';
End delete_validate;