The following lines contain the word 'select', 'insert', 'update' or 'delete':
SELECT business_group_id
FROM per_all_assignments_f
WHERE assignment_id = c_assignment_id
AND c_effective_date BETWEEN effective_start_date AND effective_end_date;
SELECT pcv_information1,pcv_information2
FROM pqp_configuration_values pcv,
pqp_configuration_types pct
WHERE pcv.pcv_information_category = pct.configuration_type
AND pct.configuration_type = 'PQP_GB_PENSERVER_ELIGBLTY_CONF'
AND pcv.business_group_id = c_business_group_id;
SELECT aei_information1
FROM per_assignment_Extra_info
WHERE assignment_id = c_assignment_id
AND aei_information_category = 'PQP_GB_PENSERV_SVPN';
SELECT max(to_number(paei.aei_information1))+1
FROM per_all_people_f papf,
per_all_assignments_f paaf,
per_assignment_extra_info paei
WHERE papf.NATIONAL_IDENTIFIER = c_ni_number
AND papf.person_id = paaf.person_id
AND paei.assignment_id = paaf.assignment_id
AND paei.aei_information_category = 'PQP_GB_PENSERV_SVPN';
SELECT papf1.NATIONAL_IDENTIFIER
FROM per_all_people_f papf1,
per_all_assignments_f paaf1
WHERE paaf1.assignment_id = c_assignment_id
AND c_effective_date BETWEEN paaf1.effective_start_date AND paaf1.effective_end_date
AND papf1.person_id = paaf1.person_id
AND c_effective_date BETWEEN papf1.effective_start_date AND papf1.effective_end_date;
SELECT pcv_information4
FROM pqp_configuration_values pcv,
pqp_configuration_types pct
WHERE pcv.pcv_information_category = pct.configuration_type
AND pct.configuration_type = 'PQP_GB_PENSERVER_PAYPOINT_INFO'
AND pcv.business_group_id = c_business_group_id;
SELECT paaf.primary_flag
FROM per_all_assignments_f paaf
WHERE paaf.assignment_id = c_assignment_id
AND c_effective_date BETWEEN paaf.effective_start_date AND paaf.effective_end_date;
l_query := 'select '||l_column_name||' '||
'from per_all_assignments_f'||' '||
'where business_group_id = '||l_bg_id||' '||
'and assignment_id = '||g_assignment_id||' ';
hr_utility.set_location(' inserted successfully :'||l_spn, 100);
SELECT mtn.configuration_value_id
,mtn.configuration_name
,mtn.business_group_id
,mtn.legislation_code
,mtn.pcv_information1 uom
,mtn.pcv_information2 is_enabled
,def.configuration_value_id defn_config_value_id
,def.configuration_name defn_config_name
,def.business_group_id defn_bg_id
,def.legislation_code defn_leg_code
,def.pcv_information4 defn_custom_function
FROM pqp_configuration_values mtn
,pqp_configuration_values def
WHERE mtn.pcv_information_category = 'PQP_ABVM_MAINTENANCE'
AND def.pcv_information_category = 'PQP_ABVM_DEFINITION'
AND def.pcv_information1 = mtn.pcv_information1
AND mtn.pcv_information2 = 'Y'
AND ( mtn.business_group_id = p_business_group_id
OR
( ( mtn.business_group_id IS NULL AND mtn.legislation_code = p_legislation_code )
AND -- there does not exist a config for this UOM at bg level
NOT EXISTS
(SELECT 1
FROM pqp_configuration_values bgmtn
WHERE bgmtn.pcv_information_category = 'PQP_ABVM_MAINTENANCE'
AND bgmtn.pcv_information1 = mtn.pcv_information1
AND bgmtn.business_group_id = p_business_group_id
) -- NOT EXISTS
) -- OR
OR
( ( mtn.business_group_id IS NULL AND mtn.legislation_code IS NULL )
AND -- there does not exist a config for this UOM at a higher level
NOT EXISTS
(SELECT 1
FROM pqp_configuration_values hlmtn
WHERE hlmtn.pcv_information_category = 'PQP_ABVM_MAINTENANCE'
AND hlmtn.pcv_information1 = mtn.pcv_information1
AND ( hlmtn.business_group_id = p_business_group_id
OR
hlmtn.legislation_code = p_legislation_code
)
) -- NOT EXISTS
) -- OR
) -- AND
AND ( def.business_group_id = p_business_group_id
OR
def.business_group_id IS NULL AND def.legislation_code = p_legislation_code
OR
def.business_group_id IS NULL AND def.legislation_code IS NULL
);
SELECT 1
FROM pqp_assignment_attributes_f
WHERE assignment_id = p_assignment_id
AND contract_type is NOT NULL
AND rownum < 2;
SELECT 1
FROM per_assignment_budget_values_f
WHERE ASSIGNMENT_ID = p_assignment_id
and unit = p_uom ;
select assignment_type, business_group_id
from per_all_assignments_f
where assignment_id = p_assignment_id
and p_effective_date between effective_start_date and effective_end_date ;