Hi friends,
I have a piece of PLSQL code(A). I am processing the PLSQL code A based on 2 parameters(param1 and param2) coming from a cursorA .
eg:
CursorA(param1 and param2)
loop
if param1 is not null then
I need to execute PLSQL code(A) based on param1
else
I need to execute PLSQL code(A) based on the param2
enf if
end loop
So my question is, there is a code redundancy (that is I'm executing the same process in PLSQL code(A) in both if and else part the variation is based on the param1 and param2) in both if and else part ..
What can I do to avoid this code redundancy?