The following lines contain the word 'select', 'insert', 'update' or 'delete':
select org.organization_id
from hr_organization_units org
where org.organization_id = p_organization_id
and org.business_group_id = p_business_group_id
and p_effective_date between org.date_from and nvl(org.date_to, to_date('31/12/4712', 'DD/MM/YYYY'));
select pbg.security_group_id
from per_business_groups pbg
, hr_de_organization_links ord
where ord.organization_link_id = p_organization_link_id
and pbg.business_group_id = ord.business_group_id;
select pbg.legislation_code
from per_business_groups pbg
, hr_de_organization_links ord
where ord.organization_link_id = p_organization_link_id
and pbg.business_group_id = ord.business_group_id;
select organization_id
from hr_organization_information
where organization_id = p_organization_id
and org_information_context = 'CLASS'
and org_information1 = 'HR_ORG'
and org_information2 = 'Y';
select organization_id
from hr_organization_information inf
,hr_de_org_link_types_mapping map
where inf.organization_id = p_organization_id
and inf.org_information_context = 'CLASS'
and inf.org_information2 = 'Y'
and inf.org_information1 = map.org_class
and map.org_link_type = p_org_link_type;
select null
from per_business_groups
where business_group_id = p_business_group_id
and legislation_code = 'DE';
procedure chk_organization_link_delete
(p_org_link_type in varchar2) is
--
--
-- Local variables.
--
l_proc varchar2(72) := g_package || 'chk_organization_link_delete';
end chk_organization_link_delete;
Procedure chk_non_updateable_args
(p_effective_date in date
,p_rec in hr_ord_shd.g_rec_type
) IS
--
l_proc varchar2(72) := g_package || 'chk_non_updateable_args';
End chk_non_updateable_args;
Procedure insert_validate
(p_effective_date in date
,p_rec in hr_ord_shd.g_rec_type) is
--
--
-- Local Variables.
--
l_proc varchar2(72) := g_package || 'insert_validate';
End insert_validate;
Procedure update_validate
(p_effective_date in date
,p_rec in hr_ord_shd.g_rec_type) is
--
--
-- Local Variables.
--
l_proc varchar2(72) := g_package || 'update_validate';
chk_non_updateable_args
(p_effective_date => p_effective_date
,p_rec => p_rec);
End update_validate;
Procedure delete_validate
(p_rec in hr_ord_shd.g_rec_type
) is
--
l_proc varchar2(72) := g_package||'delete_validate';
chk_organization_link_delete
(p_org_link_type => p_rec.org_link_type);
End delete_validate;