The following lines contain the word 'select', 'insert', 'update' or 'delete':
SELECT 'Y'
FROM per_person_types ppt
WHERE ppt.system_person_type like 'EMP%'
AND ppt.person_type_Id = p_person_type_id;
select business_group_id
from hr_organization_units
where organization_id = p_organization_id;
select orgif.org_information1 from hr_organization_information orgif,hr_organization_units ou
where ( orgif.org_information_context = 'DK_SERVICE_PROVIDER_DETAILS' or orgif.org_information_context = 'DK_LEGAL_ENTITY_DETAILS')
and ou.organization_id = orgif.organization_id
and orgif.org_information1 = p_org_information1;
select orgif.org_information1, orgif.org_information2, orgif.org_information3
from hr_organization_information orgif,hr_organization_units ou
where orgif.org_information_context = 'DK_SICKPAY_DEFAULTS'
and ou.business_group_id = p_business_group_id
and ou.organization_id = p_organization_id
and ou.organization_id = orgif.organization_id;
select s.effective_date into l_effective_date from FND_SESSIONS s
where s.session_id = userenv('sessionid');
PROCEDURE validate_update_org_inf
(p_org_info_type_code in varchar2
,p_org_information_id in number
,p_org_information1 in varchar2
,p_org_information2 in varchar2
,p_org_information3 in varchar2
) IS
l_org_information1 hr_organization_information.org_information1%TYPE;
select business_group_id
from hr_organization_units
where organization_id = l_organization_id;
select organization_id
from hr_organization_information
where org_information_id = p_org_information_id;
select orgif.org_information1 from hr_organization_information orgif,hr_organization_units ou
where ( orgif.org_information_context = 'DK_SERVICE_PROVIDER_DETAILS' or orgif.org_information_context = 'DK_LEGAL_ENTITY_DETAILS')
and ou.organization_id = orgif.organization_id
and orgif.organization_id <> nvl(l_organization_id,0)
and orgif.org_information1 = p_org_information1;
select orgif.org_information1, orgif.org_information2, orgif.org_information3
from hr_organization_information orgif,hr_organization_units ou
where orgif.org_information_context = 'DK_SICKPAY_DEFAULTS'
and ou.business_group_id = p_business_group_id
and ou.organization_id = p_organization_id
and ou.organization_id = orgif.organization_id;
select s.effective_date into l_effective_date from FND_SESSIONS s
where s.session_id = userenv('sessionid');
END validate_update_org_inf;
PROCEDURE validate_update_emp_asg
(p_assignment_id in number
,p_assignment_status_type_id in number
,p_segment6 in varchar2
,p_segment7 in varchar2
,p_segment8 in varchar2
,p_segment9 in varchar2
) IS
l_asg_start_date date;
select creation_date from per_all_assignments_f where
assignment_id = p_assignment_id;
END validate_update_emp_asg;
select ou.internal_external_flag from hr_organization_units ou ,FND_SESSIONS s
where ou.organization_id= p_organization_id
and s.session_id = userenv('sessionid')
and s.effective_date between ou.date_from and nvl(ou.date_to,to_date('31/12/4712','DD/MM/YYYY'));
select count(hou.organization_id)
from HR_ORGANIZATION_INFORMATION hoi
,HR_ORGANIZATION_UNITS hou
,FND_SESSIONS s
where hoi.org_information_context ='CLASS'
and hoi.org_information1 ='DK_SERVICE_PROVIDER'
and hou.organization_id = hoi.organization_id
and hou.BUSINESS_GROUP_ID = p_business_group_id
and s.session_id = userenv('sessionid')
and s.effective_date between hou.date_from and nvl(hou.date_to,to_date('31/12/4712','DD/MM/YYYY'));
select business_group_id
from hr_organization_units
where organization_id = p_organization_id;