<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Backward Use of CASE in SQL</title>
	<atom:link href="http://blog.crankybit.com/backward-use-of-case-in-sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.crankybit.com/backward-use-of-case-in-sql/</link>
	<description>Take a byte out of tech!</description>
	<lastBuildDate>Wed, 08 Feb 2012 15:54:01 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Josh</title>
		<link>http://blog.crankybit.com/backward-use-of-case-in-sql/#comment-6317</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Fri, 09 Nov 2007 19:56:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.crankybit.com/backward-use-of-case-in-sql/#comment-6317</guid>
		<description>Lol! When I first read about CASE statements in SQL way back when, it resonated with my understanding of SWITCH..CASE statements in C. Until this situation, I never even considered that the SQL equivalent would work any other way.</description>
		<content:encoded><![CDATA[<p>Lol! When I first read about CASE statements in SQL way back when, it resonated with my understanding of SWITCH..CASE statements in C. Until this situation, I never even considered that the SQL equivalent would work any other way.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: todd sharp</title>
		<link>http://blog.crankybit.com/backward-use-of-case-in-sql/#comment-6315</link>
		<dc:creator>todd sharp</dc:creator>
		<pubDate>Fri, 09 Nov 2007 19:41:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.crankybit.com/backward-use-of-case-in-sql/#comment-6315</guid>
		<description>Funny - there was a long time that I didn&#039;t know the &quot;simple&quot; method existed a while back! :)</description>
		<content:encoded><![CDATA[<p>Funny &#8211; there was a long time that I didn&#8217;t know the &#8220;simple&#8221; method existed a while back! <img src='http://blog.crankybit.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh</title>
		<link>http://blog.crankybit.com/backward-use-of-case-in-sql/#comment-6283</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Fri, 09 Nov 2007 13:59:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.crankybit.com/backward-use-of-case-in-sql/#comment-6283</guid>
		<description>Thanks! I never realized this alternate syntax existed until a need like this called for it.</description>
		<content:encoded><![CDATA[<p>Thanks! I never realized this alternate syntax existed until a need like this called for it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: todd sharp</title>
		<link>http://blog.crankybit.com/backward-use-of-case-in-sql/#comment-6280</link>
		<dc:creator>todd sharp</dc:creator>
		<pubDate>Fri, 09 Nov 2007 13:41:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.crankybit.com/backward-use-of-case-in-sql/#comment-6280</guid>
		<description>Technically you don&#039;t even need the 1 in your last example.  There are two different flavors of CASE (as you&#039;ve illustrated) - a simple case and a searched case.  Here&#039;s what the docs show:

Simple CASE function:
CASE input_expression 
    WHEN when_expression THEN result_expression 
        [ ...n ] 
    [ 
        ELSE else_result_expression 
    ] 
END 

Searched CASE function:

CASE
    WHEN Boolean_expression THEN result_expression 
        [ ...n ] 
    [ 
        ELSE else_result_expression 
    ] 
END</description>
		<content:encoded><![CDATA[<p>Technically you don&#8217;t even need the 1 in your last example.  There are two different flavors of CASE (as you&#8217;ve illustrated) &#8211; a simple case and a searched case.  Here&#8217;s what the docs show:</p>
<p>Simple CASE function:<br />
CASE input_expression<br />
    WHEN when_expression THEN result_expression<br />
        [ ...n ]<br />
    [<br />
        ELSE else_result_expression<br />
    ]<br />
END </p>
<p>Searched CASE function:</p>
<p>CASE<br />
    WHEN Boolean_expression THEN result_expression<br />
        [ ...n ]<br />
    [<br />
        ELSE else_result_expression<br />
    ]<br />
END</p>
]]></content:encoded>
	</item>
</channel>
</rss>

