I am using acuodbc 5.1 driver. I need to retrieve data ('Select') from a table and build a calculated column based on a certain criteria. In PL/SQL & T-Sql this can be done using a 'Case' Function
Ex.
Select output = case flag
when 'd' then col1 + col2
when 'h' then col1 - col2
Now there are other creative ways to perform this w/o using case, by having a 'select' statement in the 'From' clause. But this doesn't seem to work either.
Is there a way to accomplish this with a subquery or anything else using this driver?
Pretty weak driver!
Thanks.
Ex.
Select output = case flag
when 'd' then col1 + col2
when 'h' then col1 - col2
Now there are other creative ways to perform this w/o using case, by having a 'select' statement in the 'From' clause. But this doesn't seem to work either.
Is there a way to accomplish this with a subquery or anything else using this driver?
Pretty weak driver!
Thanks.