CASE is SQL’s answer to other programming languages IF-ELSE statement.<\/p>\n\n\n\n
If you need to test a condition and return a value, CASE is the expression you need.<\/p>\n\n\n\n
Introduction<\/a>
Syntax<\/a>
CASE with one condition<\/a>
CASE with multiple conditions<\/a>
Limitations and Gotchas<\/a><\/p><\/blockquote>\n\n\n\n
\n\n\n\nIntroduction<\/h2>\n\n\n\n
In this example, I\u2019m going to load a subset of the top-selling Sega Genesis games dataset<\/a> into SQL Server<\/a>.<\/p>\n\n\n\n