The following lines contain the word 'select', 'insert', 'update' or 'delete':
hr_utility.set_location('hr_org_pre_delete.hr_org_predel_check'
,1);
select '1'
into l_test_func
from sys.dual
where exists ( select 1
from PER_PEOPLE_F x
where x.business_group_id = p_business_group_id);
hr_utility.set_location('hr_org_pre_delete.hr_org_predel_check'
,2);
select '1'
into l_test_func
from sys.dual
where exists ( select 1
from HR_ORGANIZATION_UNITS x
where x.business_group_id = p_business_group_id
and x.organization_id <> p_business_group_id);
hr_utility.set_location('hr_org_pre_delete.hr_org_predel_check'
,3);
select '1'
into l_test_func
from sys.dual
where exists ( select 1
from PER_JOBS x
where x.business_group_id = p_business_group_id);
hr_utility.set_location('hr_org_pre_delete.hr_org_predel_check'
,4);
select '1'
into l_test_func
from sys.dual
where exists ( select 1
from HR_ALL_POSITIONS_F x
where x.business_group_id = p_business_group_id);
hr_utility.set_location('hr_org_pre_delete.hr_org_predel_check'
,5);
select '1'
into l_test_func
from sys.dual
where exists ( select 1
from PER_BUDGET_VALUES x
where x.business_group_id = p_business_group_id);
hr_utility.set_location('hr_org_pre_delete.hr_org_predel_check'
,6);
select '1'
into l_test_func
from sys.dual
where exists ( select 1
from PER_RECRUITMENT_ACTIVITIES x
where x.business_group_id = p_business_group_id);
hr_utility.set_location('hr_org_pre_delete.hr_org_predel_check'
,7);
select '1'
into l_test_func
from sys.dual
where exists ( select 1
from PER_ORG_STRUCTURE_ELEMENTS x
where x.business_group_id = p_business_group_id);
hr_utility.set_location('hr_org_pre_delete.hr_org_predel_check',8);
select '1'
into l_test_func
from sys.dual
where exists ( select 1
from HR_ALL_POSITIONS_F x
where x.organization_id = p_organization_id);
hr_utility.set_location('hr_org_pre_delete.hr_org_predel_check',9);
select '1'
into l_test_func
from sys.dual
where exists ( select 1
from PER_ORG_STRUCTURE_ELEMENTS x
where x.organization_id_child = p_organization_id);
hr_utility.set_location('hr_org_pre_delete.hr_org_predel_check',10);
select '1'
into l_test_func
from sys.dual
where exists ( select 1
from PER_ORG_STRUCTURE_ELEMENTS x
where x.organization_id_parent = p_organization_id);
hr_utility.set_location('hr_org_pre_delete.hr_org_predel_check',11);
select '1'
into l_test_func
from sys.dual where exists ( select 1
from per_assignments_f x
where x.source_organization_id = p_organization_id);
hr_utility.set_location('hr_org_pre_delete.hr_org_predel_check',12);
select '1'
into l_test_func
from sys.dual where exists ( select 1
from per_assignments_f x
where x.organization_id = p_organization_id);
hr_utility.set_location('hr_org_pre_delete.hr_org_predel_check',13);
select '1'
into l_test_func
from sys.dual where exists ( select 1
from per_recruitment_activities x
where x.run_by_organization_id = p_organization_id);
hr_utility.set_location('hr_org_pre_delete.hr_org_predel_check',14);
select '1'
into l_test_func
from sys.dual where exists ( select 1
from per_vacancies x
where x.organization_id = p_organization_id);
hr_utility.set_location('hr_org_pre_delete.hr_org_predel_check',15);
select '1'
into l_test_func
from sys.dual where exists ( select 1
from per_events x
where x.organization_run_by_id = p_organization_id);
hr_utility.set_location('hr_org_pre_delete.hr_org_predel_check',16);
select '1'
into l_test_func
from sys.dual where exists ( select 1
from pay_element_links_f x
where x.organization_id = p_organization_id);
hr_utility.set_location('hr_org_pre_delete.hr_org_predel_check',16);
select '1'
into l_test_func
from sys.dual where exists ( select 1
from pay_payrolls_f x
where x.organization_id = p_organization_id);
hr_utility.set_location('hr_org_pre_delete.hr_org_predel_check',17);
select '1'
into l_test_func
from sys.dual where exists ( select 1
from pay_wc_funds x
where x.carrier_id = p_organization_id);
hr_utility.set_location('hr_org_pre_delete.hr_org_predel_check',18);
select '1'
into l_test_func
from sys.dual where exists ( select 1
from per_budget_elements x
where x.organization_id = p_organization_id);
hr_utility.set_location('hr_org_pre_delete.hr_org_predel_check',20);
select '1'
into l_test_func
from sys.dual where exists ( select 1
from per_security_profiles x
where x.organization_id = p_organization_id);
p_organization_id : Id of Organization to be updated to business group.
*/
-- Storage Variable.
l_test_func varchar2(60);
hr_utility.set_location('hr_org_pre_delete.hr_strong_bg_chk',1);
select '1'
into l_test_func
from sys.dual
where exists ( select 1
from PAY_ELEMENT_LINKS_F x
where x.ORGANIZATION_ID = p_organization_id);
hr_utility.set_location('hr_org_pre_delete.hr_strong_bg_chk',2);
select '1'
into l_test_func
from sys.dual
where exists ( select 1
from PAY_PAYROLLS_F x
where x.ORGANIZATION_ID = p_organization_id);
hr_utility.set_location('hr_org_pre_delete.hr_strong_bg_chk',3);
select '1'
into l_test_func
from sys.dual
where exists ( select 1
from PER_ASSIGNMENTS_F x
where x.SOURCE_ORGANIZATION_ID = p_organization_id);
hr_utility.set_location('hr_org_pre_delete.hr_strong_bg_chk',4);
select '1'
into l_test_func
from sys.dual
where exists ( select 1
from PER_ASSIGNMENTS_F x
where x.ORGANIZATION_ID = p_organization_id);
hr_utility.set_location('hr_org_pre_delete.hr_strong_bg_chk',5);
select '1'
into l_test_func
from sys.dual
where exists ( select 1
from PER_BUDGET_ELEMENTS x
where x.ORGANIZATION_ID = p_organization_id);
hr_utility.set_location('hr_org_pre_delete.hr_strong_bg_chk',6);
select '1'
into l_test_func
from sys.dual
where exists ( select 1
from PER_EVENTS x
where x.ORGANIZATION_RUN_BY_ID = p_organization_id);
hr_utility.set_location('hr_org_pre_delete.hr_strong_bg_chk',7);
select '1'
into l_test_func
from sys.dual
where exists ( select 1
from PER_ORG_STRUCTURE_ELEMENTS x
where x.ORGANIZATION_ID_PARENT = p_organization_id);
hr_utility.set_location('hr_org_pre_delete.hr_strong_bg_chk',8);
select '1'
into l_test_func
from sys.dual
where exists ( select 1
from PER_ORG_STRUCTURE_ELEMENTS x
where x.ORGANIZATION_ID_CHILD = p_organization_id);
hr_utility.set_location('hr_org_pre_delete.hr_strong_bg_chk',9);
select '1'
into l_test_func
from sys.dual
where exists ( select 1
from HR_ALL_POSITIONS_F x
where x.ORGANIZATION_ID = p_organization_id);
hr_utility.set_location('hr_org_pre_delete.hr_strong_bg_chk',10);
select '1'
into l_test_func
from sys.dual
where exists ( select 1
from PER_RECRUITMENT_ACTIVITIES x
where x.RUN_BY_ORGANIZATION_ID = p_organization_id);
hr_utility.set_location('hr_org_pre_delete.hr_strong_bg_chk',11);
select '1'
into l_test_func
from sys.dual
where exists ( select 1
from PER_SECURITY_PROFILES x
where x.ORGANIZATION_ID = p_organization_id);
hr_utility.set_location('hr_org_pre_delete.hr_strong_bg_chk',12);
select '1'
into l_test_func
from sys.dual
where exists ( select 1
from PER_VACANCIES x
where x.ORGANIZATION_ID = p_organization_id);