[Home] [Help]
The following lines contain the word 'select', 'insert', 'update' or 'delete':
procedure update_row(p_rowid in varchar2,
p_action_status in varchar2 ) is
begin
--
update PAY_ASSIGNMENT_ACTIONS
set ACTION_STATUS = p_action_status
where ROWID = p_rowid;
end update_row;
procedure delete_row(p_rowid in varchar2) is
--
begin
--
delete from PAY_ASSIGNMENT_ACTIONS
where ROWID = p_rowid;
end delete_row;
cursor C is select *
from PAY_ASSIGNMENT_ACTIONS
where rowid = p_rowid
for update of PAYROLL_ACTION_ID NOWAIT ;
select aac.assignment_action_id,
aac.action_status,
pac.action_type
from pay_payroll_actions pac,
pay_assignment_actions aac,
pay_action_interlocks loc
where loc.locked_action_id = p_assignment_action_id
and loc.locking_action_id = aac.assignment_action_id
and aac.pre_payment_id = p_pre_payment_id
and aac.action_status = 'C'
and pac.payroll_action_id = aac.payroll_action_id
and pac.action_type in ('H','E','M','A', 'PP') ;
select aac.assignment_action_id
from pay_payroll_actions pac,
pay_assignment_actions aac,
pay_action_interlocks loc
where loc.locked_action_id = p_assignment_action_id
and loc.locking_action_id = aac.assignment_action_id
and aac.payroll_action_id = pac.payroll_action_id
and pac.action_type = 'D' ;
select 'Y'
into l_exists
from dual
where exists (
select null
from pay_message_lines pml
where pml.source_id = p_assignment_action_id
and pml.source_type = 'A');
select max(asg.effective_start_date)
into l_date
from per_all_assignments_f asg
where asg.assignment_id = p_assignment_id
and asg.effective_start_date <= p_effective_date;
select max(asg.effective_start_date)
into l_date
from per_all_assignments_f asg
where asg.assignment_id = p_assignment_id
and asg.effective_start_date >= p_effective_date;
select max(pep.effective_start_date)
into l_date
from per_all_people_f pep
where pep.person_id = p_person_id
and pep.effective_start_date <= p_effective_date;
select max(pep.effective_start_date)
into l_date
from per_all_people_f pep
where pep.person_id = p_person_id
and pep.effective_start_date >= p_effective_date;