<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Eddie Awad’s Blog - Latest Comments in What you Ought to Know About CASE in Oracle PL/SQL</title><link>http://awads.disqus.com/</link><description>News, views, tips and tricks on Oracle and other fun stuff</description><atom:link href="https://awads.disqus.com/what_you_ought_to_know_about_case_in_oracle_plsql/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 08 Oct 2008 10:53:33 -0000</lastBuildDate><item><title>Re: What you Ought to Know About CASE in Oracle PL/SQL</title><link>http://awads.net/wp/2007/07/25/what-you-ought-to-know-about-case-in-oracle-plsql/#comment-3659244</link><description>&lt;p&gt;Surprise surprise, Tom wrote a snarky response without reading the post.&lt;/p&gt;&lt;p&gt;This article and the poster on asktom are talking about CASE in Oracle PL/SQL.  Tom is only talking about CASE in Oracle SQL, where you never &lt;i&gt;need&lt;/i&gt; the ELSE.&lt;/p&gt;&lt;p&gt;Bottom line is, you'll only get the CASE_NOT_FOUND exception when omitting the else clause from a case "statement" in PL/SQL.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Not Tom</dc:creator><pubDate>Wed, 08 Oct 2008 10:53:33 -0000</pubDate></item><item><title>Re: What you Ought to Know About CASE in Oracle PL/SQL</title><link>http://awads.net/wp/2007/07/25/what-you-ought-to-know-about-case-in-oracle-plsql/#comment-3659243</link><description>&lt;p&gt;Seems like an unknown subtlety to even Tom:&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:67073167580253" rel="nofollow noopener" target="_blank" title="http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:67073167580253"&gt;http://asktom.oracle.com/pl...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reader</dc:creator><pubDate>Sat, 04 Aug 2007 21:20:23 -0000</pubDate></item><item><title>Re: What you Ought to Know About CASE in Oracle PL/SQL</title><link>http://awads.net/wp/2007/07/25/what-you-ought-to-know-about-case-in-oracle-plsql/#comment-3659242</link><description>&lt;p&gt;Glad you learned something new guys. I also learned something new today thanks to Pete, the &lt;a href="http://en.wikipedia.org/wiki/Duff%27s_device" rel="nofollow noopener" target="_blank" title="http://en.wikipedia.org/wiki/Duff%27s_device"&gt;Duff's device&lt;/a&gt;. I had to check it out. Very interesting.&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;After my limited reading about it, and If I understand it correctly, I do not believe that Duff's device can be simulated in PL/SQL using CASE because there is no "break" in PL/SQL as there is in C. Moreover, unlike C, CASE breaks automatically at the end of a positive WHEN condition block (continues after the END CASE).&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;Now, there is this new feature in 11g, &lt;a href="http://technology.amis.nl/blog/?p=2261" rel="nofollow noopener" target="_blank" title="http://technology.amis.nl/blog/?p=2261"&gt;CONTINUE&lt;/a&gt;,  but I do not see that it will make any difference in this case.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Eddie Awad</dc:creator><pubDate>Thu, 26 Jul 2007 23:21:29 -0000</pubDate></item><item><title>Re: What you Ought to Know About CASE in Oracle PL/SQL</title><link>http://awads.net/wp/2007/07/25/what-you-ought-to-know-about-case-in-oracle-plsql/#comment-3659241</link><description>&lt;p&gt;Good one Eddie&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;Learned a new thing :)&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;Sidhu&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sidhu</dc:creator><pubDate>Thu, 26 Jul 2007 13:05:50 -0000</pubDate></item><item><title>Re: What you Ought to Know About CASE in Oracle PL/SQL</title><link>http://awads.net/wp/2007/07/25/what-you-ought-to-know-about-case-in-oracle-plsql/#comment-3659240</link><description>&lt;p&gt;Nice post Eddie, it would be interesting; if i had any spare time..:-) to see if Duffs device would work with PL/SQL case contructs as they do with C.&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;cheers&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;Pete&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Pete Finnigan</dc:creator><pubDate>Thu, 26 Jul 2007 10:09:08 -0000</pubDate></item><item><title>Re: What you Ought to Know About CASE in Oracle PL/SQL</title><link>http://awads.net/wp/2007/07/25/what-you-ought-to-know-about-case-in-oracle-plsql/#comment-3659239</link><description>&lt;p&gt;oh!&lt;br&gt;this was new to me the differnet behavior of a searched case expression and a statement.&lt;br&gt;Great&lt;br&gt;Karl&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Karl</dc:creator><pubDate>Thu, 26 Jul 2007 02:43:47 -0000</pubDate></item></channel></rss>