SQL Server provides a mechanism for returning different values in a SELECT clause based on Boolean conditions: the CASE statement. This statement resembles Visual Basics Select Case statement.
The SQL CASE statement has WHEN, THEN, and ELSE clauses...
Read more...