FALCONSEYE
Programmer
I have the following ( part of my function):
when i compile this, i get
Warning: compiled but with compilation errors
How do i run a case statement and assign the returning value to a variable ?
thanks in advance.
Code:
...
tempSalesPrice varchar2 := '0';
tempCode number := NULL;
tempVariance number := 0;
...
select cllc.code, variance_from_commissions,
( case when tempSalesPrice != '0' then tempSalesPrice
else ru.calc_sale_price
end)
into tempCod, tempVariance, tempSalesPrice
from mytable1 ru
inner join mytable2 cllc
on cllc.pid = ru.pid
where ... ;
when i compile this, i get
Warning: compiled but with compilation errors
How do i run a case statement and assign the returning value to a variable ?
thanks in advance.