The following lines contain the word 'select', 'insert', 'update' or 'delete':
SELECT nvl(fnd_number.canonical_to_number(global_value),0)
FROM ff_globals_f
WHERE global_name = c_global_name
AND legislation_code = 'NL'
AND (c_date_earned between effective_start_date and effective_end_date);
SELECT TPTYPE.number_per_fiscal_year
FROM pay_payroll_actions PACTION
,per_time_periods TPERIOD
,per_time_period_types TPTYPE
WHERE PACTION.payroll_action_id = c_payroll_action_id
AND TPERIOD.payroll_id = PACTION.payroll_id
AND (PACTION.date_earned between TPERIOD.start_date
and TPERIOD.end_date)
AND TPTYPE.period_type = TPERIOD.period_type;
SELECT nvl(fnd_number.canonical_to_number(global_value),0)
FROM ff_globals_f
WHERE global_name = c_global_name
AND legislation_code IS NULL
AND business_group_id = c_business_group_id
AND (c_date_earned between effective_start_date and effective_end_date);
SELECT nvl(minimum_age,0),nvl(maximum_age,100)
FROM pqp_pension_types_f
WHERE pension_type_id = p_pension_type_id
AND p_date_earned BETWEEN effective_start_date
AND effective_end_date;
SELECT organization_id
FROM per_all_assignments_f
WHERE assignment_id = p_assignment_id
AND p_date_earned BETWEEN effective_start_date
AND effective_end_date;
SELECT organization_id_parent
FROM per_org_structure_elements
WHERE organization_id_child = c_org_id
AND org_structure_version_id = c_version_id
AND business_group_id = p_business_group_id;
SELECT decode(p_ee_or_total,0,nvl(fnd_number.canonical_to_number(org_information4),0)
,nvl(fnd_number.canonical_to_number(org_information5),0))
FROM hr_organization_information
WHERE org_information_context = 'PQP_NL_PGGM_PT'
AND organization_id = c_org_id
AND p_date_earned BETWEEN fnd_date.canonical_to_date(org_information1)
AND nvl(fnd_date.canonical_to_date(org_information2),hr_api.g_eot)
AND fnd_number.canonical_to_number(org_information3) = p_pension_type_id;
SELECT decode(p_ee_or_total,0,nvl(ee_contribution_percent,0)
,nvl(er_contribution_percent,0))
FROM pqp_pension_types_f
WHERE pension_type_id = p_pension_type_id
AND p_date_earned BETWEEN effective_start_date
AND effective_end_date;
SELECT max(fnd_number.canonical_to_number(row_low_range_or_name))
FROM pay_user_rows_f
WHERE p_date_earned BETWEEN effective_start_date
AND effective_end_date
AND user_table_id = (SELECT user_table_id
FROM pay_user_tables
WHERE user_table_name = 'PQP_NL_PGGM_AGE_DEPENDANT_THRESHOLD'
AND legislation_code = 'NL'
);
SELECT max(fnd_number.canonical_to_number(row_low_range_or_name))
FROM pay_user_rows_f
WHERE p_date_earned BETWEEN effective_start_date
AND effective_end_date
AND user_table_id = (SELECT user_table_id
FROM pay_user_tables
WHERE user_table_name = 'PQP_NL_PGGM_AGE_DEPENDANT_THRESHOLD_CUSTOM'
AND legislation_code = 'NL'
);
SELECT trunc(date_of_birth)
FROM per_all_people_f per
,per_all_assignments_f paf
WHERE per.person_id = paf.person_id
AND paf.assignment_id = p_assignment_id
AND p_effective_date BETWEEN per.effective_start_date
AND per.effective_end_date
AND p_effective_date BETWEEN paf.effective_start_date
AND paf.effective_end_date;
SELECT pension_basis_calc_method
FROM pqp_pension_types_f
WHERE pension_type_id = p_pension_type_id
AND p_date_earned BETWEEN effective_start_date
AND effective_end_date;
SELECT asg.effective_start_date start_date
,nvl(asg.effective_end_date,p_period_end_date) end_date
FROM per_all_assignments_f asg,per_assignment_status_types past
WHERE asg.assignment_id = p_assignment_id
AND asg.assignment_status_type_id = past.assignment_status_type_id
AND past.per_system_status = 'ACTIVE_ASSIGN'
AND asg.effective_start_date <= p_period_end_date
AND nvl(asg.effective_end_date,p_period_end_date)
>= p_period_start_date;
SELECT TPERIOD.period_type
FROM pay_payroll_actions PACTION
,per_time_periods TPERIOD
WHERE PACTION.payroll_action_id = c_payroll_action_id
AND TPERIOD.payroll_id = PACTION.payroll_id
AND (PACTION.date_earned between TPERIOD.start_date
and TPERIOD.end_date);
SELECT organization_id
FROM per_all_assignments_f
WHERE assignment_id = p_assignment_id
AND p_date_earned BETWEEN effective_start_date
AND effective_end_date;
SELECT organization_id_parent
FROM per_org_structure_elements
WHERE organization_id_child = c_org_id
AND org_structure_version_id = c_version_id
AND business_group_id = p_business_group_id;
SELECT decode(p_code,0,org_information3,1,org_information4)
FROM hr_organization_information
WHERE organization_id = c_org_id
AND org_information_context = 'PQP_NL_PGGM_INFO'
AND p_date_earned BETWEEN fnd_date.canonical_to_date(org_information1)
AND fnd_date.canonical_to_date(nvl(org_information2,fnd_date.date_to_canonical(hr_api.g_eot)))
AND decode(p_code,0,org_information3,1,org_information4) IS NOT NULL;
SELECT max(date_start)
FROM per_all_assignments_f asg
,per_periods_of_service pps
WHERE pps.person_id = asg.person_id
AND asg.assignment_id = c_asg_id
AND pps.business_group_id = p_business_group_id
AND date_start <= p_date_earned;
SELECT fnd_number.canonical_to_number(NVL(target.SEGMENT29,'100')) pt_perc
FROM per_assignments_f asg
,hr_soft_coding_keyflex target
WHERE asg.assignment_id = p_assignment_id
AND target.soft_coding_keyflex_id = asg.soft_coding_keyflex_id
AND trunc(c_effective_date) between asg.effective_start_date
AND asg.effective_end_date
AND target.enabled_flag = 'Y';
SELECT min(effective_start_date)
FROM per_all_assignments_f
WHERE assignment_id = p_assignment_id;
SELECT db.defined_balance_id
FROM pay_balance_types pbt
,pay_defined_balances db
,pay_balance_dimensions bd
WHERE pbt.balance_name = c_balance_name
AND pbt.balance_type_id = db.balance_type_id
AND bd.balance_dimension_id = db.balance_dimension_id
AND bd.dimension_name = c_dimension_name
AND (pbt.business_group_id = c_business_group_id OR
pbt.legislation_code = 'NL')
AND (db.business_group_id = pbt.business_group_id OR
db.legislation_code = 'NL');
SELECT fnd_number.canonical_to_number(global_value)
FROM ff_globals_f
WHERE global_name = c_global_name
AND trunc (p_date_earned) BETWEEN effective_start_date
AND effective_end_date;
SELECT cola.name
FROM per_collective_agreements cola
,per_all_assignments_f asg
WHERE asg.assignment_id = c_asg_id
AND asg.collective_agreement_id = cola.collective_agreement_id
AND cola.status = 'A'
AND c_eff_date BETWEEN asg.effective_start_date
AND asg.effective_end_date
AND c_eff_date BETWEEN cola.start_date
AND NVL(cola.end_date,to_date('31/12/4712','DD/MM/YYYY'));
SELECT pety.number_per_fiscal_year
FROM pay_payrolls_f ppaf
,per_time_period_types pety
WHERE ppaf.payroll_id = p_payroll_id
AND ppaf.period_type = pety.period_type;
SELECT organization_id
FROM per_all_assignments_f
WHERE assignment_id = p_assignment_id
AND c_eff_date BETWEEN effective_start_date
AND effective_end_date;
select min (fffunc.cn(decode(
decode(INPUTV.uom,'M','N','N','N','I','N',null),'N',decode(INPUTV.hot_default_flag,'Y',nvl(EEV.screen_entry_value,
nvl(LIV.default_value,INPUTV.default_value)),'N',EEV.screen_entry_value),null))) eoy_or
FROM pay_element_entry_values_f EEV,
pay_element_entries_f EE,
pay_link_input_values_f LIV,
pay_input_values_f INPUTV,
pay_element_types_f pet
WHERE INPUTV.element_type_id = pet.element_type_id
AND INPUTV.name = 'End of Year Bonus Percentage'
AND c_effective_date BETWEEN INPUTV.effective_start_date
AND INPUTV.effective_end_date
AND INPUTV.element_type_id = pet.element_type_id
AND c_effective_date BETWEEN pet.effective_start_date
AND pet.effective_end_date
AND pet.element_name = 'PGGM Pensions General Information'
AND pet.legislation_code = 'NL'
AND LIV.input_value_id = INPUTV.input_value_id
AND c_effective_date BETWEEN LIV.effective_start_date
AND LIV.effective_end_date
AND EEV.input_value_id + 0 = INPUTV.input_value_id
AND EEV.element_entry_id = EE.element_entry_id
AND EEV.effective_start_date = EE.effective_start_date
AND EEV.effective_end_date = EE.effective_end_date
AND EE.element_link_id = LIV.element_link_id
AND EE.assignment_id = c_asg_id
AND c_effective_date BETWEEN EE.effective_start_date
AND EE.effective_end_date ;
select min (fffunc.cn(decode(
decode(INPUTV.uom,'M','N','N','N','I','N',null),'N',decode(INPUTV.hot_default_flag,'Y',nvl(EEV.screen_entry_value,
nvl(LIV.default_value,INPUTV.default_value)),'N',EEV.screen_entry_value),null))) ha_or
FROM pay_element_entry_values_f EEV,
pay_element_entries_f EE,
pay_link_input_values_f LIV,
pay_input_values_f INPUTV,
pay_element_types_f pet
WHERE INPUTV.element_type_id = pet.element_type_id
AND INPUTV.name = 'Holiday Allowance Percentage'
AND c_effective_date BETWEEN INPUTV.effective_start_date
AND INPUTV.effective_end_date
AND INPUTV.element_type_id = pet.element_type_id
AND c_effective_date BETWEEN pet.effective_start_date
AND pet.effective_end_date
AND pet.element_name = 'PGGM Pensions General Information'
AND pet.legislation_code = 'NL'
AND LIV.input_value_id = INPUTV.input_value_id
AND c_effective_date BETWEEN LIV.effective_start_date
AND LIV.effective_end_date
AND EEV.input_value_id + 0 = INPUTV.input_value_id
AND EEV.element_entry_id = EE.element_entry_id
AND EEV.effective_start_date = EE.effective_start_date
AND EEV.effective_end_date = EE.effective_end_date
AND EE.element_link_id = LIV.element_link_id
AND EE.assignment_id = c_asg_id
AND c_effective_date BETWEEN EE.effective_start_date
AND EE.effective_end_date ;
SELECT NVL(min(PTP.start_date),to_date('0101'||c_year,'DDMMYYYY'))
FROM per_time_periods PTP
WHERE
PTP.payroll_id = p_payroll_id
AND (substr(PTP.period_name,4,4)=c_year
OR substr(PTP.period_name,3,4)=c_year);
SELECT min(effective_start_date)
FROM per_all_assignments_f
WHERE assignment_id = p_assignment_id
AND effective_end_date >= p_period_start_date;
SELECT fnd_number.canonical_to_number(NVL(target.SEGMENT29,'0')) pt_perc
FROM per_assignments_f asg
,hr_soft_coding_keyflex target
WHERE asg.assignment_id = p_assignment_id
AND target.soft_coding_keyflex_id = asg.soft_coding_keyflex_id
AND c_effective_date between asg.effective_start_date
AND asg.effective_end_date
AND target.enabled_flag = 'Y';
SELECT fnd_number.canonical_to_number(NVL(target.segment28,'0')) hours_worked
,nvl(asg.normal_hours,0) total_hours
,nvl(asg.frequency,'W') freq
,asg.effective_start_date start_date
,asg.effective_end_date end_date
FROM per_assignments_f asg
,per_assignment_status_types ast
,hr_soft_coding_keyflex target
WHERE asg.assignment_id = p_assignment_id
AND asg.assignment_status_type_id = ast.assignment_status_type_id
AND ast.per_system_status = 'ACTIVE_ASSIGN'
AND target.soft_coding_keyflex_id = asg.soft_coding_keyflex_id
AND asg.effective_start_date <= p_period_end_date
AND asg.effective_end_date >= p_period_start_date;
SELECT TPERIOD.period_type
FROM pay_payroll_actions PACTION
,per_time_periods TPERIOD
WHERE PACTION.payroll_action_id = c_payroll_action_id
AND TPERIOD.payroll_id = PACTION.payroll_id
AND (PACTION.date_earned between TPERIOD.start_date
and TPERIOD.end_date);
SELECT scl.SEGMENT1
FROM per_all_assignments_f asg
,hr_soft_coding_keyflex scl
WHERE asg.assignment_id = c_assignment_id
AND c_date_earned BETWEEN asg.effective_start_date
AND asg.effective_end_date
AND asg.soft_coding_keyflex_id = scl.soft_coding_keyflex_id;