The following lines contain the word 'select', 'insert', 'update' or 'delete':
select null
from per_establishment_attendances per
where nvl(per.person_id,-1) = nvl(p_person_id,-1)
and per.attended_start_date = nvl(p_attended_start_date,hr_api.g_sot)
and nvl(per.establishment_id,-1) = nvl(p_establishment_id,-1)
and nvl(per.establishment,-1) = nvl(p_establishment,-1)
and nvl(per.business_group_id,-1) = nvl(p_business_group_id,-1);
select null
from per_establishment_attendances per
where per.party_id = p_party_id
and per.attended_start_date = nvl(p_attended_start_date,hr_api.g_sot)
and nvl(per.establishment_id,-1) = nvl(p_establishment_id,-1)
and nvl(per.establishment,-1) = nvl(p_establishment,-1);
select party_id
from per_all_people_f per
where per.person_id = p_rec.person_id
and p_effective_date
between per.effective_start_date
and nvl(per.effective_end_date,hr_api.g_eot);
select party_id
from hz_parties hzp
where hzp.party_id = p_rec.party_id;
fnd_message.set_name('PER', 'HR_289587_ESA_ADDRESS_UPDATE');
select null
from per_establishments per
where per.establishment_id = p_establishment_id;
select null
from per_establishment_attendances per
where per.person_id = p_person_id
and per.establishment_id = p_establishment_id
and per.attendance_id <> nvl(p_attendance_id,-1)
and (nvl(p_attended_start_date,hr_api.g_sot)
between per.attended_start_date
and nvl(per.attended_end_date,hr_api.g_eot)
or nvl(p_attended_end_date,hr_api.g_eot)
between per.attended_start_date
and nvl(per.attended_end_date,hr_api.g_eot));
select null
from per_qualifications per
where per.attendance_id = p_attendance_id
and (per.start_date
not between nvl(p_attended_start_date,hr_api.g_sot)
and nvl(p_attended_end_date,per.start_date)
or per.end_date
not between nvl(p_attended_start_date,hr_api.g_sot)
and nvl(p_attended_end_date,per.end_date));
select null
from per_establishment_attendances per
where per.party_id = p_party_id
and per.establishment_id = p_establishment_id
and per.attendance_id <> nvl(p_attendance_id,-1)
and (nvl(p_attended_start_date,hr_api.g_sot)
between per.attended_start_date
and nvl(per.attended_end_date,hr_api.g_eot)
or nvl(p_attended_end_date,hr_api.g_eot)
between per.attended_start_date
and nvl(per.attended_end_date,hr_api.g_eot));
select DATE_OF_BIRTH
from per_all_people_f per
where per.person_id = p_person_id
and p_effective_date
between per.effective_start_date
and nvl(per.effective_end_date,hr_api.g_eot)
and date_of_birth is not null;
select null
from per_people_f per
where per.person_id = p_person_id
and per.business_group_id =nvl(p_business_group_id,per.business_group_id)
and trunc(p_effective_date)
between trunc(per.effective_start_date)
and nvl(trunc(per.effective_end_date),trunc(per.effective_end_date));
Procedure chk_estab_att_delete(p_attendance_id in number,
p_object_version_number in number) is
--
l_proc varchar2(72) := g_package||'chk_estab_att_delete';
select null
from per_qualifications per
where per.attendance_id = p_attendance_id;
end chk_estab_att_delete;
Procedure insert_validate(p_rec in out nocopy per_esa_shd.g_rec_type,
p_effective_date in date) is
--
l_proc varchar2(72) := g_package||'insert_validate';
End insert_validate;
Procedure update_validate(p_rec in per_esa_shd.g_rec_type,
p_effective_date in date) is
--
l_proc varchar2(72) := g_package||'update_validate';
End update_validate;
Procedure delete_validate(p_rec in per_esa_shd.g_rec_type) is
--
l_proc varchar2(72) := g_package||'delete_validate';
chk_estab_att_delete(p_rec.attendance_id,
p_rec.object_version_number);
End delete_validate;
select pbg.legislation_code
from per_business_groups pbg
, per_establishment_attendances esa
where esa.attendance_id = p_attendance_id
and pbg.business_group_id = esa.business_group_id;
select 'Y'
from per_establishment_attendances
where attendance_id = p_attendance_id
and business_group_id is null;