Hi all, kinda new to in-depth oracle code (i'm a sql server guy). what am i missing here? i get this error:
encountered the symbol "THEN" when expecting one of the following: :=.(%;
*cLFlaVA
----------------------------
[tt]I already made like infinity of those at scout camp...[/tt]
[URL unfurl="true"]http://www.coryarthus.com/[/url]
![[banghead] [banghead] [banghead]](/data/assets/smilies/banghead.gif)
encountered the symbol "THEN" when expecting one of the following: :=.(%;
Code:
-- get approval date
if (curRequest.request_type_id = 30134) then
select t.last_update_date into dtApproveDate
from kwfl_step_transactions t join kwfl_workflow_steps s
on t.workflow_step_id = s.workflow_step_id
where t.instance_source_id = curRequest.request_id
and t.instance_source_type_code = 'IR'
and s.sort_order = 41
and t.status = 'COMPLETE'
and t.visible_result_value = 'Approve';
[red] elseif (curRequest.request_type_id = 30026) then[/red]
select t.last_update_date into dtApproveDate
from kwfl_step_transactions t join kwfl_workflow_steps s
on t.workflow_step_id = s.workflow_step_id
where t.instance_source_id = curRequest.request_id
and t.instance_source_type_code = 'IR'
and (s.sort_order = 6
and t.status = 'COMPLETE'
and t.visible_result_value = 'Complete')
or (s.sort_order = 1
and t.status = 'COMPLETE'
and t.visible_result_value = 'Resolve');
else
select t.last_update_date into dtApproveDate
from kwfl_step_transactions t join kwfl_workflow_steps s
on t.workflow_step_id = s.workflow_step_id
where t.instance_source_id = curRequest.request_id
and t.instance_source_type_code = 'IR'
and s.sort_order = 10
and t.status = 'COMPLETE'
and t.visible_result_value = 'Yes';
end if;
*cLFlaVA
----------------------------
[tt]I already made like infinity of those at scout camp...[/tt]
[URL unfurl="true"]http://www.coryarthus.com/[/url]
![[banghead] [banghead] [banghead]](/data/assets/smilies/banghead.gif)