How to do an if/else in an Informix SQL Query
Posted on 2008-10-09
I am doing a simple select, but I am not sure of the syntax for an if/else statement in informix.
I want the mobile number to be from A2.phone but if A2.phone is null and A4.phone is not null then I want A4.phone to also be the mobile number.
Here is the select:
A3.line1 || A3.line2 email,
from id_rec I