Hello,
I am tring to execute a SQL in Visual basic which has the following format
Select order_no,order_amount,executed_amount from tab1,tab2 where order=x
and f_status(order_no,order_item_no) ='OPEN';
f_status(order_no,order_item_no) is a stored function which calculates the balance on the order and returns 'OPEN' if order is not fully executed.
the above SQL is passed as a string. But when i execute i get an error. Cant i use a SQL function in the where clause?
Can sombody tell me why the error. Is there any other way to do it. I need the function to a part of the SQL.
Thanks
I am tring to execute a SQL in Visual basic which has the following format
Select order_no,order_amount,executed_amount from tab1,tab2 where order=x
and f_status(order_no,order_item_no) ='OPEN';
f_status(order_no,order_item_no) is a stored function which calculates the balance on the order and returns 'OPEN' if order is not fully executed.
the above SQL is passed as a string. But when i execute i get an error. Cant i use a SQL function in the where clause?
Can sombody tell me why the error. Is there any other way to do it. I need the function to a part of the SQL.
Thanks