Developer's Alley
TODO:
Have you ever wanted to use a CASE statement in your T-SQL Select Query?
SOLUTION:
SELECT Column = CASE WHEN SomeValue = 0 THEN 'Zero' WHEN SomeValue < 0 THEN 'Minus' ELSE 'Plus' END FROM MyTable
NOTES:
There are no notes on this topic.
Get notified when a new post is published.