Popular Posts

SQLblog.com - The SQL Server blog spot on the web

Wednesday, July 12, 2017

Simplifying a CASE statement

SQLServerCentral » Latest topics
Simplifying a CASE statement
Hi  I'm new to CASE statements and wondering if the following can be simplified:

SELECT   CASE WHEN ExchangeRate > 0 THEN Sales_Price / ExchangeRate ELSE Sales_Price END AS Sales_Price,
      

No comments: