The following lines contain the word 'select', 'insert', 'update' or 'delete':
select pbg.security_group_id,
pbg.legislation_code
from per_business_groups_perf pbg
, pay_pl_sii_details_f psd
where psd.sii_details_id = p_sii_details_id
and pbg.business_group_id = psd.business_group_id;
select pbg.legislation_code
from per_business_groups_perf pbg
, pay_pl_sii_details_f psd
where psd.sii_details_id = p_sii_details_id
and pbg.business_group_id = psd.business_group_id;
select null
from per_all_people_f papf
where papf.person_id = p_per_or_asg_id and
papf.business_group_id = p_business_group_id and
p_effective_date between papf.effective_start_date and
papf.effective_end_date and
papf.person_type_id in (select person_type_id from per_person_types
where business_group_id = p_business_group_id
and system_person_type in ('EMP','EMP_APL'));
select null
from per_all_assignments_f paaf, hr_soft_coding_keyflex hrsoft
where paaf.assignment_id = p_per_or_asg_id and
paaf.business_group_id = p_business_group_id and
p_effective_date between paaf.effective_start_date and
paaf.effective_end_date and
paaf.assignment_status_type_id in (select assignment_status_type_id from
per_assignment_status_types where
per_system_status in ('ACTIVE_ASSIGN','SUSP_ASSIGN'))
and paaf.soft_coding_keyflex_id = hrsoft.soft_coding_keyflex_id and
hrsoft.segment3 in (l_civil_catg,l_lump_catg,l_f_lump_catg);
select null
from per_all_assignments_f paaf, hr_soft_coding_keyflex hrsoft
where paaf.assignment_id = p_per_or_asg_id and
paaf.business_group_id = p_business_group_id and
p_effective_date between paaf.effective_start_date and
paaf.effective_end_date and
paaf.assignment_status_type_id in (select assignment_status_type_id from
per_assignment_status_types where
per_system_status = 'TERM_ASSIGN')
and paaf.soft_coding_keyflex_id = hrsoft.soft_coding_keyflex_id and
hrsoft.segment3 = l_term_catg;
select null
from pay_user_columns puc, pay_user_tables put
where puc.user_table_id = put.user_table_id
and put.user_table_name = l_user_table_name
and put.legislation_code = l_legislation_code
and puc.user_column_name = p_emp_social_security_info;
Procedure chk_non_updateable_args
(p_effective_date in date
,p_rec in pay_psd_shd.g_rec_type
) IS
--
l_proc varchar2(72) := g_package || 'chk_non_updateable_args';
End chk_non_updateable_args;
Procedure dt_update_validate
(p_datetrack_mode in varchar2
,p_validation_start_date in date
,p_validation_end_date in date
) Is
--
l_proc varchar2(72) := g_package||'dt_update_validate';
End dt_update_validate;
Procedure dt_delete_validate
(p_sii_details_id in number
,p_datetrack_mode in varchar2
,p_validation_start_date in date
,p_validation_end_date in date
) Is
--
l_proc varchar2(72) := g_package||'dt_delete_validate';
If (p_datetrack_mode = hr_api.g_delete or
p_datetrack_mode = hr_api.g_zap) then
--
--
-- Ensure the arguments are not null
--
hr_api.mandatory_arg_error
(p_api_name => l_proc
,p_argument => 'validation_start_date'
,p_argument_value => p_validation_start_date
);
End dt_delete_validate;
Procedure insert_validate
(p_rec in pay_psd_shd.g_rec_type
,p_effective_date in date
,p_datetrack_mode in varchar2
,p_validation_start_date in date
,p_validation_end_date in date
) is
--
l_proc varchar2(72) := g_package||'insert_validate';
End insert_validate;
Procedure update_validate
(p_rec in pay_psd_shd.g_rec_type
,p_effective_date in date
,p_datetrack_mode in varchar2
,p_validation_start_date in date
,p_validation_end_date in date
) is
--
l_proc varchar2(72) := g_package||'update_validate';
dt_update_validate
(p_datetrack_mode => p_datetrack_mode
,p_validation_start_date => p_validation_start_date
,p_validation_end_date => p_validation_end_date
);
chk_non_updateable_args
(p_effective_date => p_effective_date
,p_rec => p_rec
);
End update_validate;
Procedure delete_validate
(p_rec in pay_psd_shd.g_rec_type
,p_effective_date in date
,p_datetrack_mode in varchar2
,p_validation_start_date in date
,p_validation_end_date in date
) is
--
l_proc varchar2(72) := g_package||'delete_validate';
dt_delete_validate
(p_datetrack_mode => p_datetrack_mode
,p_validation_start_date => p_validation_start_date
,p_validation_end_date => p_validation_end_date
,p_sii_details_id => p_rec.sii_details_id
);
End delete_validate;
select pucif.value
into p_old_age_contribution
from
pay_user_column_instances_f pucif,
pay_user_columns puc,
pay_user_rows_f purf,
pay_user_tables put
where put.user_table_name ='PL_EMPLOYEE_SOCIAL_SECURITY_INFORMATION'
and put.legislation_code = 'PL'
and purf.legislation_code = 'PL'
and purf.user_table_id = put.user_table_id
and p_effective_date between purf.effective_start_date and purf.effective_end_date
and purf.row_low_range_or_name = 'Old Age'
and puc.user_column_name = p_emp_social_security_info
and puc.user_table_id = put.user_table_id
and pucif.user_row_id = purf.user_row_id
and pucif.user_column_id = puc.user_column_id
and p_effective_date between pucif.effective_start_date and pucif.effective_end_date;
select pucif.value
into p_pension_contribution
from
pay_user_column_instances_f pucif,
pay_user_columns puc,
pay_user_rows_f purf,
pay_user_tables put
where put.user_table_name ='PL_EMPLOYEE_SOCIAL_SECURITY_INFORMATION'
and put.legislation_code = 'PL'
and purf.legislation_code = 'PL'
and purf.user_table_id = put.user_table_id
and p_effective_date between purf.effective_start_date and purf.effective_end_date
and purf.row_low_range_or_name = 'Pension'
and puc.user_column_name = p_emp_social_security_info
and puc.user_table_id = put.user_table_id
and pucif.user_row_id = purf.user_row_id
and pucif.user_column_id = puc.user_column_id
and p_effective_date between pucif.effective_start_date and pucif.effective_end_date;
select pucif.value
into p_sickness_contribution
from
pay_user_column_instances_f pucif,
pay_user_columns puc,
pay_user_rows_f purf,
pay_user_tables put
where put.user_table_name ='PL_EMPLOYEE_SOCIAL_SECURITY_INFORMATION'
and put.legislation_code = 'PL'
and purf.legislation_code = 'PL'
and purf.user_table_id = put.user_table_id
and p_effective_date between purf.effective_start_date and purf.effective_end_date
and purf.row_low_range_or_name = 'Sickness'
and puc.user_column_name = p_emp_social_security_info
and puc.user_table_id = put.user_table_id
and pucif.user_row_id = purf.user_row_id
and pucif.user_column_id = puc.user_column_id
and p_effective_date between pucif.effective_start_date and pucif.effective_end_date;
select pucif.value
into p_work_injury_contribution
from
pay_user_column_instances_f pucif,
pay_user_columns puc,
pay_user_rows_f purf,
pay_user_tables put
where put.user_table_name ='PL_EMPLOYEE_SOCIAL_SECURITY_INFORMATION'
and put.legislation_code = 'PL'
and purf.legislation_code = 'PL'
and purf.user_table_id = put.user_table_id
and p_effective_date between purf.effective_start_date and purf.effective_end_date
and purf.row_low_range_or_name = 'Work Injury'
and puc.user_column_name = p_emp_social_security_info
and puc.user_table_id = put.user_table_id
and pucif.user_row_id = purf.user_row_id
and pucif.user_column_id = puc.user_column_id
and p_effective_date between pucif.effective_start_date and pucif.effective_end_date;
select pucif.value
into p_labor_contribution
from
pay_user_column_instances_f pucif,
pay_user_columns puc,
pay_user_rows_f purf,
pay_user_tables put
where put.user_table_name ='PL_EMPLOYEE_SOCIAL_SECURITY_INFORMATION'
and put.legislation_code = 'PL'
and purf.legislation_code = 'PL'
and purf.user_table_id = put.user_table_id
and p_effective_date between purf.effective_start_date and purf.effective_end_date
and purf.row_low_range_or_name = 'Labor'
and puc.user_column_name = p_emp_social_security_info
and puc.user_table_id = put.user_table_id
and pucif.user_row_id = purf.user_row_id
and pucif.user_column_id = puc.user_column_id
and p_effective_date between pucif.effective_start_date and pucif.effective_end_date;
select pucif.value
into p_health_contribution
from
pay_user_column_instances_f pucif,
pay_user_columns puc,
pay_user_rows_f purf,
pay_user_tables put
where put.user_table_name ='PL_EMPLOYEE_SOCIAL_SECURITY_INFORMATION'
and put.legislation_code = 'PL'
and purf.legislation_code = 'PL'
and purf.user_table_id = put.user_table_id
and p_effective_date between purf.effective_start_date and purf.effective_end_date
and purf.row_low_range_or_name = 'Health'
and puc.user_column_name = p_emp_social_security_info
and puc.user_table_id = put.user_table_id
and pucif.user_row_id = purf.user_row_id
and pucif.user_column_id = puc.user_column_id
and p_effective_date between pucif.effective_start_date and pucif.effective_end_date;
select pucif.value
into p_unemployment_contribution
from
pay_user_column_instances_f pucif,
pay_user_columns puc,
pay_user_rows_f purf,
pay_user_tables put
where put.user_table_name ='PL_EMPLOYEE_SOCIAL_SECURITY_INFORMATION'
and put.legislation_code = 'PL'
and purf.legislation_code = 'PL'
and purf.user_table_id = put.user_table_id
and p_effective_date between purf.effective_start_date and purf.effective_end_date
and purf.row_low_range_or_name = 'Unemployment'
and puc.user_column_name = p_emp_social_security_info
and puc.user_table_id = put.user_table_id
and pucif.user_row_id = purf.user_row_id
and pucif.user_column_id = puc.user_column_id
and p_effective_date between pucif.effective_start_date and pucif.effective_end_date;