How do you preform an IF...THEN in a SQL SELECT
Posted
by Eric Labashosky
on Stack Overflow
See other posts from Stack Overflow
or by Eric Labashosky
Published on 2008-09-15T14:34:09Z
Indexed on
2010/03/16
9:36 UTC
Read the original article
Hit count: 216
I want to be able to perform a IF...THEN in an SQL SELECT Statement.
For Example;
SELECT IF(Obsolete = 'N' or InStock = 'Y';1;0) as Salable, * FROM Product
© Stack Overflow or respective owner