Excuse me if this has been asked and answered previously
but the keyword
search engine has been down for sometime now.
(At least when I have logged on)
I was wondering if you can use an IF stmt instead of
a case in a select statment.
for example
select
table1.a,
if (table1.b = 'y') then 'y'
else 'n'
from table1
but I get several syntax errors in doing this.
I've tried with begin and end stmts and also
getting rid of the 'then'
but to no avail
Thanks
ds
but the keyword
search engine has been down for sometime now.
(At least when I have logged on)
I was wondering if you can use an IF stmt instead of
a case in a select statment.
for example
select
table1.a,
if (table1.b = 'y') then 'y'
else 'n'
from table1
but I get several syntax errors in doing this.
I've tried with begin and end stmts and also
getting rid of the 'then'
but to no avail
Thanks
ds