We have a requirement in our project to convert a dynamic cursor to a static cursor.
In the dynamic cursor, we have used 3 dynamic statements in the WHERE condition.
Say, the 3 fields are INP-A,INP-B,INP-C. INP-A, INP-B and INP-C are passed from the user.
IF INP-A and INP-B has values and INP-C is SPACES, then my where clause will be
Select -----
from table
where A = :WS-A
AND B = :WS-B
or IF INP-A has values and INP-B and INP-C is SPACES, then my where clause will be
Select -----
from table
where A = :WS-A
and so on.
We need to convert such a dynamic cursor into a static cursor. There is one possible solution that we tried - where 1 dynamic cursor is converted into N static cursors ( In the above example, N = 8 )
We require a solution where 1 dynamic cursor is converted to 1 static cursor.
Can you please help me out with a possible solution?