I have a PL/SQL function FN_CALC(emp_sal) which returns a Value.
PL/SQL Function is working properly.
Using the return value of the function I need to update the my oracle query(ie when function returns 1000 one condition else another condition).
Based on the output of Function I need to update the query. Below is my query.
update EMPLOYEE_MASTER
set EMP_GRADE = case
when EMP_GRADE < (FN_CALC(emp_sal))
then EMP_GRADE ='A'
end;
Kindly help to solve.That is depending on the output of PL/SQL Function the udpate statement should work.
Regards Prakash