SQL Server query replace for MySQL Instruction

Posted by pojomx on Stack Overflow See other posts from Stack Overflow or by pojomx
Published on 2010-04-29T02:24:23Z Indexed on 2010/04/29 2:27 UTC
Read the original article Hit count: 316

Filed under:
|
|

Hi, I'm new to SQL Server, and used mysql for a while now...

SELECT A.acol, IF(A.acol<0,"Neg","Pos") as Column2 From Table

I want to do something like that on SQL Server, but there doesn't exist the IF instruction.

How do I replace that if, in a SQL Server 2008 Query?

© Stack Overflow or respective owner

Related posts about sql-server-2008

Related posts about mysql