Posted on 2013-06-22
I have two implement below logic,
case function of
1 : Showmessage ('1');
function in above statement shall return 1 or 2 or 3 querying a table on below conditions:
The table has two columns eg A and B, which contain either 0 or 1 values.
First condition shall be querying the table where column B has all 0 values. For this condition the function shall return 1.
Second condition: Column B has all 1 values and column A has 0 values. For this condition the function shall return 2.
Third condition: Column B has all 1 values and Column A has 1 values, for this condition the function shall returen 3.
Need help with code snippet !