I want to get net amount from my mysql data field. I have tried to decode the fields like the below.. But I am getting the Error:
"Lookup Error - MySQL Database Error: Incorrect parameter count in the call to native function 'decode'"
Can anybody help?
Query I have used:
select decode (txn_type ,'Exense',-txn_amount,txn_amount)as net_amount where id > 0