The following lines contain the word 'select', 'insert', 'update' or 'delete':
SELECT hoi.org_information_context
, hoi.org_information1
FROM hr_organization_information hoi
WHERE hoi.org_information_context = 'GHR_US_ORG_INFORMATION'
AND hoi.organization_id = p_current_bg;
SELECT hoi.org_information_context
, hoi.org_information6
FROM hr_organization_information hoi
WHERE hoi.org_information_context = 'GHR_US_ORG_INFORMATION'
AND hoi.organization_id = p_current_bg
AND hoi.org_information6 = 'Y';
SELECT 1
FROM ben_pgm_f
WHERE name = 'Federal Employees Health Benefits' and business_group_id = p_current_bg;
SELECT 1
FROM ben_pgm_f
WHERE name = 'Federal Employees Health Benefits'
and business_group_id = p_current_bg
and pgm_stat_cd = 'A';
SELECT 1
FROM ben_pgm_f
WHERE name = 'Federal Thrift Savings Plan (TSP)'
and business_group_id = p_current_bg
and pgm_stat_cd = 'A';
select flx.id_flex_num
from fnd_id_flex_structures_tl flx
where flx.id_flex_code = c_flex_code -- 'POS'
and flx.application_id = 800 --
and flx.id_flex_structure_name = c_struct_name -- 'US Federal Position'
and flx.language = 'US';
select org_information8
from hr_organization_information oi
where org_information_context = 'Business Group Information'
and organization_id = c_bus_org_id;
SELECT
SEGMENT_NAME,
DESCRIPTION,
ENABLED_FLAG,
APPLICATION_COLUMN_NAME,
SEGMENT_NUM,
DISPLAY_FLAG,
APPLICATION_COLUMN_INDEX_FLAG,
DEFAULT_VALUE,
RUNTIME_PROPERTY_FUNCTION,
ADDITIONAL_WHERE_CLAUSE,
REQUIRED_FLAG,
SECURITY_ENABLED_FLAG,
DISPLAY_SIZE,
MAXIMUM_DESCRIPTION_LEN,
CONCATENATION_DESCRIPTION_LEN,
FORM_ABOVE_PROMPT,
FORM_LEFT_PROMPT,
RANGE_CODE,
FLEX_VALUE_SET_ID,
DEFAULT_TYPE,
ID_FLEX_NUM,
ID_FLEX_CODE,
APPLICATION_ID,
ROW_ID
FROM
FND_ID_FLEX_SEGMENTS_VL
WHERE
(ID_FLEX_NUM= c_flex_num) and -- 50520
(ID_FLEX_CODE= c_flex_code) and -- 'POS'
(APPLICATION_ID= 800)
order by segment_num;
SELECT concatenated_segment_delimiter delimiter
FROM fnd_id_flex_structures_vl
WHERE (APPLICATION_ID=800) AND
(ID_FLEX_CODE= c_flex_code) AND
id_flex_num = c_flex_num; --
select information6,segment1,segment2,segment3,segment4,
segment5,segment6,segment7
from per_position_definitions pdf, hr_all_positions_f pos
where pos.position_definition_id = pdf.position_definition_id
and pos.position_id = c_position_id
and c_effective_date between pos.effective_start_date and
pos.effective_end_date;
SELECT 1 FROM hr_positions_f
WHERE information6 = to_char(c_position_id); -- Bug 4576746
select trunc(effective_date) session_date
from fnd_sessions
where session_id = (select userenv('sessionid') from dual);
PROCEDURE validate_delete_nfc(
P_POSITION_ID in NUMBER
,P_EFFECTIVE_DATE in DATE
) IS
CURSOR c_check_child(c_position_id hr_positions_f.position_id%type) IS
SELECT 1 FROM hr_positions_f
WHERE information6 = to_char(c_position_id); -- Bug 4576746
hr_utility.set_location('Entering: Validate_Delete_NFC ',10);
hr_utility.set_location(' Validate_Delete_NFC ',60);
END validate_delete_nfc;
select information6,segment1,segment2,segment3,segment4,
segment5,segment6,segment7
from per_position_definitions pdf, hr_all_positions_f pos
where pos.position_definition_id = pdf.position_definition_id
and pos.position_id = c_position_id
and c_effective_date between pos.effective_start_date and
pos.effective_end_date;
select trunc(effective_date) session_date
from fnd_sessions
where session_id = (select userenv('sessionid') from dual);
PROCEDURE update_nfc_eit(
P_POSITION_ID in NUMBER
,P_SEGMENT1 in VARCHAR2
,P_SEGMENT2 in VARCHAR2
,P_SEGMENT3 in VARCHAR2
,P_SEGMENT4 in VARCHAR2
,P_SEGMENT5 in VARCHAR2
,P_SEGMENT6 in VARCHAR2
,P_SEGMENT7 in VARCHAR2
,P_SEGMENT8 in VARCHAR2
,P_SEGMENT9 in VARCHAR2
,P_SEGMENT10 in VARCHAR2
,P_SEGMENT11 in VARCHAR2
,P_SEGMENT12 in VARCHAR2
,P_SEGMENT13 in VARCHAR2
,P_SEGMENT14 in VARCHAR2
,P_SEGMENT15 in VARCHAR2
,P_SEGMENT16 in VARCHAR2
,P_SEGMENT17 in VARCHAR2
,P_SEGMENT18 in VARCHAR2
,P_SEGMENT19 in VARCHAR2
,P_SEGMENT20 in VARCHAR2
,P_SEGMENT21 in VARCHAR2
,P_SEGMENT22 in VARCHAR2
,P_SEGMENT23 in VARCHAR2
,P_SEGMENT24 in VARCHAR2
,P_SEGMENT25 in VARCHAR2
,P_SEGMENT26 in VARCHAR2
,P_SEGMENT27 in VARCHAR2
,P_SEGMENT28 in VARCHAR2
,P_SEGMENT29 in VARCHAR2
,P_SEGMENT30 in VARCHAR2
,P_INFORMATION6 in VARCHAR2
,P_EFFECTIVE_DATE in DATE
,P_LANGUAGE_CODE in VARCHAR2 ) IS
Cursor c_pos_ei(p_position_id in NUMBER,
p_information_type in VARCHAR2) is
select position_extra_info_id,
object_version_number
from per_position_extra_info
where position_id = p_position_id
and information_type = p_information_type;
hr_position_extra_info_api.update_position_extra_info
( p_position_extra_info_id => l_Extra_Info_Id
, p_object_version_number => l_ovn
, p_poei_information3 => p_segment4);
hr_position_extra_info_api.update_position_extra_info
( p_position_extra_info_id => l_Extra_Info_Id
, p_object_version_number => l_ovn
, p_poei_information3 => p_segment7);
hr_position_extra_info_api.update_position_extra_info
( p_position_extra_info_id => l_Extra_Info_Id
, p_object_version_number => l_ovn
, p_poei_information21 => p_segment3);
END update_nfc_eit;
select ppf.business_group_id
from per_all_people_f ppf
where ppf.person_id = p_person_id
and trunc(sysdate) between ppf.effective_start_date
and ppf.effective_end_date;
select pos.business_group_id
from hr_all_positions_f pos -- Venkat -- Position DT
where pos.position_id = p_position_id
and trunc(sysdate) between pos.effective_start_date
and pos.effective_end_date;
select asg.business_group_id
from per_all_assignments_f asg
where asg.assignment_id = p_assignment_id
and trunc(sysdate) between asg.effective_start_date
and asg.effective_end_date;
select pbg.security_group_id
from per_business_groups pbg
where pbg.business_group_id = p_business_group_id;
cursor c_noa_code is select code from ghr_nature_of_actions
where nature_of_action_id= p_nature_of_action_id;
select nvl(max(fnd_date.canonical_to_date(rei_information3))+1,p_effective_date)
authentication_date
from ghr_pa_requests par, ghr_pa_request_extra_info rei
where par.person_id in ( select person_id from ghr_pa_requests where
pa_request_id = p_pa_request_id )
and par.effective_date = p_effective_date
and par.pa_notification_id is not null
and par.pa_request_id = rei.pa_request_id
and rei.information_type = 'GHR_US_PAR_NFC_INFO';
select effective_date,first_noa_code,
second_noa_code,pa_notification_id,pa_request_id
from ghr_pa_requests
where pa_notification_id is not null
and person_id = p_person_id
and pa_notification_id < p_pa_notification_id
and effective_date <= p_effective_date
and first_noa_code not in ('001') -- Exclude all cancellations
and pa_request_id not in ( select altered_pa_request_id
from ghr_pa_requests where
pa_notification_id = p_pa_notification_id) -- Excludes original action
order by pa_notification_id desc;
select effective_date,first_noa_code,
first_action_la_code1,first_action_la_code2,
second_action_la_code1,second_action_la_code2
from ghr_pa_requests
where pa_notification_id is not null
and person_id = p_person_id
and pa_notification_id < p_pa_notification_id
and effective_date <= p_effective_date
and first_noa_code not in ('001') -- Exclude all cancellations
and pa_request_id not in ( select altered_pa_request_id
from ghr_pa_requests where
pa_notification_id = p_pa_notification_id) -- Excludes original action
order by pa_notification_id desc;
select 'X'
from per_people_f per, per_person_types ppt, ghr_pa_requests par
where par.pa_request_id = p_pa_request_id
and per.person_id = par.person_id
and ppt.person_type_id = per.person_type_id
and ppt.system_person_type = 'EX_EMP'
and (par.effective_date - 1) between per.effective_start_date
and per.effective_end_date
and par.first_noa_code like '5%';