The following lines contain the word 'select', 'insert', 'update' or 'delete':
select 'Y'
from PAY_USER_TABLES
where USER_TABLE_NAME = l_table_name
and legislation_code = 'NO' ;
select user_table_id
from PAY_USER_TABLES
where USER_TABLE_NAME = l_table_name
and legislation_code = 'NO';
select user_column_id
from PAY_USER_COLUMNS
where USER_TABLE_ID = l_table_id
AND user_column_name = l_freq;
select VALUE , user_row_id
from pay_user_column_instances_f
where user_column_id = l_column_id
AND l_date between EFFECTIVE_START_DATE and EFFECTIVE_END_DATE
AND user_row_id in (select user_row_id from pay_user_rows_f where
user_table_id = l_table_id and to_number(l_ptd_amount) between to_number(row_low_range_or_name) and to_number(row_high_range)
AND l_date between EFFECTIVE_START_DATE and EFFECTIVE_END_DATE);
select ROW_LOW_RANGE_OR_NAME , ROW_HIGH_RANGE
from PAY_USER_ROWS_F
where USER_ROW_ID = l_row_id
AND l_date BETWEEN EFFECTIVE_START_DATE and EFFECTIVE_END_DATE;
select VALUE , user_row_id
from pay_user_column_instances_f
where user_column_id = l_column_id
AND l_date between EFFECTIVE_START_DATE and EFFECTIVE_END_DATE
AND user_row_id <> l_high_row_id;
select 'Y'
from PAY_USER_TABLES
where USER_TABLE_NAME = l_table_name
and legislation_code = 'NO' ;
select user_table_id
from PAY_USER_TABLES
where USER_TABLE_NAME = l_table_name
and legislation_code = 'NO';
select user_column_id
from PAY_USER_COLUMNS
where USER_TABLE_ID = l_table_id
AND user_column_name = l_freq;
select VALUE , user_row_id
from pay_user_column_instances_f
where user_column_id = l_column_id
AND l_date between EFFECTIVE_START_DATE and EFFECTIVE_END_DATE
AND user_row_id in (select user_row_id
from pay_user_rows_f
where user_table_id = l_table_id
and to_number(l_ptd_amount) between to_number(row_low_range_or_name) and to_number(row_high_range)
and l_date between EFFECTIVE_START_DATE and EFFECTIVE_END_DATE);
select ROW_LOW_RANGE_OR_NAME , ROW_HIGH_RANGE
from PAY_USER_ROWS_F
where USER_ROW_ID = l_row_id
AND l_date BETWEEN EFFECTIVE_START_DATE and EFFECTIVE_END_DATE;
select VALUE , user_row_id
from pay_user_column_instances_f
where user_column_id = l_column_id
AND l_date between EFFECTIVE_START_DATE and EFFECTIVE_END_DATE
AND user_row_id <> l_high_row_id;
select 'Y'
from PAY_USER_TABLES
where USER_TABLE_NAME = l_table_name
and legislation_code = 'NO';
select user_table_id
from PAY_USER_TABLES
where USER_TABLE_NAME = l_table_name
and legislation_code = 'NO';
select user_column_id
from PAY_USER_COLUMNS
where USER_TABLE_ID = l_table_id
AND user_column_name = l_freq;
select value
from pay_user_column_instances_f
where user_column_id = l_column_id
AND user_row_id in (select user_row_id from pay_user_rows_f
where user_table_id = l_table_id AND l_date between EFFECTIVE_START_DATE AND EFFECTIVE_END_DATE
AND to_number(l_ptd_amount) between to_number(ROW_LOW_RANGE_OR_NAME) and to_number(ROW_HIGH_RANGE));
select value
from pay_user_column_instances_f
where user_column_id = l_column_id
AND l_date between EFFECTIVE_START_DATE and EFFECTIVE_END_DATE
AND user_row_id in (select user_row_id from pay_user_rows_f
where user_table_id = l_table_id AND l_date between EFFECTIVE_START_DATE AND EFFECTIVE_END_DATE
AND to_number(l_ptd_amount) between to_number(ROW_LOW_RANGE_OR_NAME) and to_number(ROW_HIGH_RANGE));
select 'Y'
from PAY_USER_TABLES
where USER_TABLE_NAME = l_table_name
and legislation_code = 'NO';
select user_table_id
from PAY_USER_TABLES
where USER_TABLE_NAME = l_table_name
and legislation_code = 'NO';
select user_column_id
from PAY_USER_COLUMNS
where USER_TABLE_ID = l_table_id
AND user_column_name = l_freq;
select VALUE
from pay_user_column_instances_f
where user_column_id = l_column_id
AND l_date between EFFECTIVE_START_DATE and EFFECTIVE_END_DATE
AND user_row_id in (select user_row_id from pay_user_rows_f where
user_table_id = l_table_id and to_number(l_ptd_amount) between to_number(row_low_range_or_name) and to_number(row_high_range)
AND l_date between EFFECTIVE_START_DATE and EFFECTIVE_END_DATE);
Select Amount1
from PAY_RANGE_TABLES_F PRTF , PAY_RANGES_F PRF
where PRTF.range_table_id = PRF.range_table_id
and PRTF.range_table_number = TO_NUMBER(l_table_number)
and PRTF.period_frequency = l_freq
and PRTF.earnings_type = l_type
and PRTF.business_group_id = l_bg_id
and PRTF.legislation_code = 'NO'
and l_date between PRTF.effective_start_date and PRTF.effective_end_date
and to_number(l_amount) between PRF.low_band and PRF.high_band
and l_date between PRF.effective_start_date and PRF.effective_end_date;
Select Amount1
from PAY_RANGE_TABLES_F PRTF , PAY_RANGES_F PRF
where PRTF.range_table_id = PRF.range_table_id
and PRTF.range_table_number = TO_NUMBER(l_table_number)
and PRTF.period_frequency = l_freq
and PRTF.earnings_type = l_type
and PRTF.business_group_id IS NULL
and PRTF.legislation_code = 'NO'
and l_date between PRTF.effective_start_date and PRTF.effective_end_date
and to_number(l_amount) between PRF.low_band and PRF.high_band
and l_date between PRF.effective_start_date and PRF.effective_end_date;
SELECT ptp.prd_information1
FROM per_time_periods ptp , pay_payroll_actions ppa
WHERE ppa.payroll_action_id = l_pact_id
AND ppa.action_type in ('Q','R')
AND ppa.time_period_id = ptp.time_period_id
AND ptp.payroll_id = l_payroll_id;
SELECT person_id
FROM per_all_assignments_f paf
WHERE paf.assignment_id = l_assignment_id
AND l_date_earned between paf.effective_start_date and paf.effective_end_date;
SELECT assignment_id
FROM per_all_assignments_f paf
WHERE paf.person_id = l_person_id
AND primary_flag = 'Y'
AND l_date between paf.effective_start_date and paf.effective_end_date;
SELECT screen_entry_value
FROM pay_element_entry_values_f eev,
pay_element_entries_f ee,
pay_element_types_f et,
pay_input_values_f iv
WHERE eev.element_entry_id = ee.element_entry_id
And l_date between eev.effective_start_date and ee.effective_end_date
And ee.assignment_id = l_assignment_id
AND l_date between ee.effective_start_date and ee.effective_end_date
And et.element_name = 'Tax Card'
And et.legislation_code = 'NO'
And l_date between et.effective_start_date and et.effective_end_date
And et.element_type_id = iv.element_type_id
And iv.name = l_input_name
And l_date between iv.effective_start_date and iv.effective_end_date
And eev.input_value_id = iv.input_value_id;
SELECT full_name , employee_number
FROM per_all_people_f
WHERE person_id = l_person_id
AND l_date_earned between effective_start_date and effective_end_date ;
SELECT ee.ELEMENT_ENTRY_ID
FROM pay_element_entries_f ee,
pay_element_types_f et
WHERE et.element_name = 'Tax Card'
And et.legislation_code = 'NO'
And l_date between et.effective_start_date and et.effective_end_date
And et.element_type_id = ee.element_type_id
AND ee.assignment_id = l_assignment_id
AND l_date between ee.effective_start_date and ee.effective_end_date ;
SELECT distinct eev.screen_entry_value Tax_Municipality
FROM pay_element_entries_f pee
,pay_element_entry_values_f eev
,pay_input_values_f piv
,pay_element_types_f pet
,pay_payroll_actions ppa
WHERE ppa.payroll_action_id = pay_act_id
AND pee.assignment_id = p_asg_id
AND pet.element_name = 'Employer Contribution Information'
AND pet.legislation_code = 'NO'
AND piv.name = 'Tax Municipality'
AND pee.element_entry_id = eev.element_entry_id
AND eev.input_value_id + 0 = piv.input_value_id
AND piv.element_type_id = pet.element_type_id
AND ppa.effective_date BETWEEN pee.effective_start_date AND pee.effective_end_date
AND ppa.effective_date BETWEEN eev.effective_start_date AND eev.effective_end_date
AND ppa.effective_date BETWEEN piv.effective_start_date AND piv.effective_end_date
AND ppa.effective_date BETWEEN pet.effective_start_date AND pet.effective_end_date ;
SELECT ORG_INFORMATION6 lu_tax_mun
FROM pay_assignment_actions assact ,
per_all_assignments_f paa ,
pay_payroll_actions ppa ,
hr_soft_coding_keyflex scl ,
hr_organization_information hoi
WHERE assact.assignment_action_id = p_assignment_action_id
AND ppa.payroll_action_id = assact.payroll_action_id
AND paa.assignment_id = assact.assignment_id
AND ppa.effective_date BETWEEN paa.effective_start_date AND paa.effective_end_date
AND paa.soft_coding_keyflex_id = scl.soft_coding_keyflex_id
AND hoi.organization_id = scl.segment2
AND hoi.org_information_context = 'NO_LOCAL_UNIT_DETAILS' ;
SELECT ptp.prd_information2
FROM per_time_periods ptp,
pay_payroll_actions ppa
WHERE ppa.payroll_action_id = l_pact_id
AND ppa.action_type IN('Q','R')
AND ppa.time_period_id = ptp.time_period_id
AND ptp.payroll_id = l_payroll_id ;