<?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"
	>
<channel>
	<title>Comments on: Found or Not Found, That is The Question. Do You Have The Answer?</title>
	<atom:link href="http://awads.net/wp/2007/09/14/found-or-not-found-that-is-the-question-do-you-have-the-answer/feed/" rel="self" type="application/rss+xml" />
	<link>http://awads.net/wp/2007/09/14/found-or-not-found-that-is-the-question-do-you-have-the-answer/</link>
	<description>News, views, tips and tricks on Oracle and other fun stuff</description>
	<pubDate>Wed, 09 Jul 2008 00:44:04 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: Eddie Awad</title>
		<link>http://awads.net/wp/2007/09/14/found-or-not-found-that-is-the-question-do-you-have-the-answer/#comment-51554</link>
		<dc:creator>Eddie Awad</dc:creator>
		<pubDate>Mon, 17 Sep 2007 01:54:47 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/2007/09/14/found-or-not-found-that-is-the-question-do-you-have-the-answer/#comment-51554</guid>
		<description>&lt;p&gt;@Gary: You get a round of applause for your excellent thinking :).&lt;/p&gt;

&lt;p&gt;Regarding number 7, &lt;code&gt;select count(*) into v from dual where 1 = 2&lt;/code&gt; will not result in a NO_DATA_FOUND exception, but, if you add to it &lt;code&gt;having 1 = 2&lt;/code&gt; or &lt;code&gt;group by 1&lt;/code&gt; for example you'll end up with NO_DATA_FOUND.&lt;/p&gt;

&lt;p&gt;Regarding 8, the fact that the function raises a NO_DATA_FOUND exception will &lt;em&gt;not&lt;/em&gt; result in a NO_DATA_FOUND exception in the client that is calling the function.&lt;/p&gt;

&lt;p&gt;@Patrick: You also get a round of applause for your correct answer.&lt;/p&gt;

&lt;p&gt;clap clap clap clap clap clap clap clap clap clap&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>@Gary: You get a round of applause for your excellent thinking :).</p>
<p>Regarding number 7, <code>select count(*) into v from dual where 1 = 2</code> will not result in a NO_DATA_FOUND exception, but, if you add to it <code>having 1 = 2</code> or <code>group by 1</code> for example you&#8217;ll end up with NO_DATA_FOUND.</p>
<p>Regarding 8, the fact that the function raises a NO_DATA_FOUND exception will <em>not</em> result in a NO_DATA_FOUND exception in the client that is calling the function.</p>
<p>@Patrick: You also get a round of applause for your correct answer.</p>
<p>clap clap clap clap clap clap clap clap clap clap</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick Wolf</title>
		<link>http://awads.net/wp/2007/09/14/found-or-not-found-that-is-the-question-do-you-have-the-answer/#comment-51551</link>
		<dc:creator>Patrick Wolf</dc:creator>
		<pubDate>Sun, 16 Sep 2007 06:37:52 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/2007/09/14/found-or-not-found-that-is-the-question-do-you-have-the-answer/#comment-51551</guid>
		<description>&lt;p&gt;2 (raises a VALUE_ERROR), 6, 7, 8&lt;/p&gt;

&lt;p&gt;:-) Patrick&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>2 (raises a VALUE_ERROR), 6, 7, 8</p>
<p> <img src='http://awads.net/wp/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> Patrick</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gary</title>
		<link>http://awads.net/wp/2007/09/14/found-or-not-found-that-is-the-question-do-you-have-the-answer/#comment-51549</link>
		<dc:creator>Gary</dc:creator>
		<pubDate>Sat, 15 Sep 2007 20:56:40 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/2007/09/14/found-or-not-found-that-is-the-question-do-you-have-the-answer/#comment-51549</guid>
		<description>&lt;p&gt;7 is ambiguous
Do you mean the WHERE criteria match no rows (in which case you get a count() of zero) or that you have a HAVING clause such that the select returns no rows [eg select count() from table where 1=2 having count(*) != 0]
8 depends on whether the SELECT is a SELECT INTO, SELECT BULK COLLECT INTO, Cursor for loop.
I'd go with 2 and 6&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>7 is ambiguous<br />
Do you mean the WHERE criteria match no rows (in which case you get a count() of zero) or that you have a HAVING clause such that the select returns no rows [eg select count() from table where 1=2 having count(*) != 0]<br />
8 depends on whether the SELECT is a SELECT INTO, SELECT BULK COLLECT INTO, Cursor for loop.<br />
I&#8217;d go with 2 and 6</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eddie Awad</title>
		<link>http://awads.net/wp/2007/09/14/found-or-not-found-that-is-the-question-do-you-have-the-answer/#comment-51545</link>
		<dc:creator>Eddie Awad</dc:creator>
		<pubDate>Fri, 14 Sep 2007 22:22:26 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/2007/09/14/found-or-not-found-that-is-the-question-do-you-have-the-answer/#comment-51545</guid>
		<description>&lt;p&gt;Delfino, thanks for your response, however, your answer is not complete. The answer should list &lt;em&gt;all&lt;/em&gt; the circumstances that do not raise a NO_DATA_FOUND exception, not just one. I'll update the post to make the question clearer.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Delfino, thanks for your response, however, your answer is not complete. The answer should list <em>all</em> the circumstances that do not raise a NO_DATA_FOUND exception, not just one. I&#8217;ll update the post to make the question clearer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Delfino</title>
		<link>http://awads.net/wp/2007/09/14/found-or-not-found-that-is-the-question-do-you-have-the-answer/#comment-51544</link>
		<dc:creator>Delfino</dc:creator>
		<pubDate>Fri, 14 Sep 2007 20:09:28 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/2007/09/14/found-or-not-found-that-is-the-question-do-you-have-the-answer/#comment-51544</guid>
		<description>&lt;p&gt;2&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>2</p>
]]></content:encoded>
	</item>
</channel>
</rss>
