<?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: ANY, SOME and ALL in Oracle</title>
	<atom:link href="http://awads.net/wp/2005/08/09/any-some-and-all-in-oracle/feed/" rel="self" type="application/rss+xml" />
	<link>http://awads.net/wp/2005/08/09/any-some-and-all-in-oracle/</link>
	<description>News, views, tips and tricks on Oracle and other fun stuff</description>
	<pubDate>Mon, 08 Sep 2008 09:42:40 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: jan</title>
		<link>http://awads.net/wp/2005/08/09/any-some-and-all-in-oracle/#comment-52306</link>
		<dc:creator>jan</dc:creator>
		<pubDate>Tue, 12 Aug 2008 06:48:33 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/?p=98#comment-52306</guid>
		<description>Anguang, 
&lt;i&gt;SELECT *
FROM emp
WHERE sal &#62;=800 AND sal &#62;=null;
This query can return rows. Why?&lt;/i&gt;

Optimization, as you can see with explain plan.
My guess: 800 is sorted higher as Null, so we'll only test sal &#62;=800.

Interesting question though.

Jan</description>
		<content:encoded><![CDATA[<p>Anguang,<br />
<i>SELECT *<br />
FROM emp<br />
WHERE sal &gt;=800 AND sal &gt;=null;<br />
This query can return rows. Why?</i></p>
<p>Optimization, as you can see with explain plan.<br />
My guess: 800 is sorted higher as Null, so we&#8217;ll only test sal &gt;=800.</p>
<p>Interesting question though.</p>
<p>Jan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Div Shah</title>
		<link>http://awads.net/wp/2005/08/09/any-some-and-all-in-oracle/#comment-52147</link>
		<dc:creator>Div Shah</dc:creator>
		<pubDate>Wed, 11 Jun 2008 10:28:49 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/?p=98#comment-52147</guid>
		<description>Great Post. After 5 years I have understand real meaning and usefullness of any and all..

Hats Off 

Thanks</description>
		<content:encoded><![CDATA[<p>Great Post. After 5 years I have understand real meaning and usefullness of any and all..</p>
<p>Hats Off </p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sanjeet Kumar</title>
		<link>http://awads.net/wp/2005/08/09/any-some-and-all-in-oracle/#comment-52056</link>
		<dc:creator>Sanjeet Kumar</dc:creator>
		<pubDate>Tue, 01 Apr 2008 11:21:46 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/?p=98#comment-52056</guid>
		<description>please tell me the querey of  "

  i want to details of that manager who have reported maximum no. of employees.........from emp table.</description>
		<content:encoded><![CDATA[<p>please tell me the querey of  &#8221;</p>
<p>  i want to details of that manager who have reported maximum no. of employees&#8230;&#8230;&#8230;from emp table.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sandip</title>
		<link>http://awads.net/wp/2005/08/09/any-some-and-all-in-oracle/#comment-51512</link>
		<dc:creator>sandip</dc:creator>
		<pubDate>Mon, 10 Sep 2007 09:18:02 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/?p=98#comment-51512</guid>
		<description>&lt;p&gt;Really it is very nice post , It clear my confusion between any and some.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Really it is very nice post , It clear my confusion between any and some.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eddie Awad</title>
		<link>http://awads.net/wp/2005/08/09/any-some-and-all-in-oracle/#comment-50674</link>
		<dc:creator>Eddie Awad</dc:creator>
		<pubDate>Mon, 23 Apr 2007 05:55:59 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/?p=98#comment-50674</guid>
		<description>&lt;p&gt;anguang, &lt;code&gt;sal &#62;=null&lt;/code&gt; is meaningless. It's either &lt;code&gt;sal is null&lt;/code&gt; or &lt;code&gt;sal is not null&lt;/code&gt;.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>anguang, <code>sal &gt;=null</code> is meaningless. It&#8217;s either <code>sal is null</code> or <code>sal is not null</code>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anguang</title>
		<link>http://awads.net/wp/2005/08/09/any-some-and-all-in-oracle/#comment-50673</link>
		<dc:creator>anguang</dc:creator>
		<pubDate>Mon, 23 Apr 2007 00:44:00 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/?p=98#comment-50673</guid>
		<description>&lt;p&gt;What is the meaning of the following query?&lt;/p&gt;

&lt;p&gt;SELECT * 
FROM emp
WHERE NOT manager_id &#60;&#62; ALL(800,1600,null);&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>What is the meaning of the following query?</p>
<p>SELECT *<br />
FROM emp<br />
WHERE NOT manager_id &lt;&gt; ALL(800,1600,null);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anguang</title>
		<link>http://awads.net/wp/2005/08/09/any-some-and-all-in-oracle/#comment-50672</link>
		<dc:creator>anguang</dc:creator>
		<pubDate>Mon, 23 Apr 2007 00:41:36 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/?p=98#comment-50672</guid>
		<description>&lt;p&gt;SELECT *
FROM emp
WHERE sal &#62;=800 AND sal &#62;=null;
This query can return rows. Why?&lt;/p&gt;

&lt;p&gt;SELECT *
FROM emp
WHERE sal &#62;=null;
This query can not return rows. Why?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>SELECT *<br />
FROM emp<br />
WHERE sal &gt;=800 AND sal &gt;=null;<br />
This query can return rows. Why?</p>
<p>SELECT *<br />
FROM emp<br />
WHERE sal &gt;=null;<br />
This query can not return rows. Why?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bala</title>
		<link>http://awads.net/wp/2005/08/09/any-some-and-all-in-oracle/#comment-50398</link>
		<dc:creator>Bala</dc:creator>
		<pubDate>Wed, 14 Mar 2007 14:55:10 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/?p=98#comment-50398</guid>
		<description>&lt;p&gt;Very very descriptive and useful... Hats Off...&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Very very descriptive and useful&#8230; Hats Off&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jaime Lupa</title>
		<link>http://awads.net/wp/2005/08/09/any-some-and-all-in-oracle/#comment-50309</link>
		<dc:creator>Jaime Lupa</dc:creator>
		<pubDate>Thu, 25 Jan 2007 17:24:14 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/?p=98#comment-50309</guid>
		<description>&lt;p&gt;Nice post, however I believe these operators make less readable a given query.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Nice post, however I believe these operators make less readable a given query.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eddie Awad</title>
		<link>http://awads.net/wp/2005/08/09/any-some-and-all-in-oracle/#comment-85</link>
		<dc:creator>Eddie Awad</dc:creator>
		<pubDate>Wed, 10 Aug 2005 03:11:40 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/?p=98#comment-85</guid>
		<description>Robert,

Maybe you're right. Maybe Oracle introduced these comparison operators just because other databases have it, I do not know. I do know however that SQL Server has similar [ANY/SOME](http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tsqlref/ts_setu-sus_17jt.asp) and [ALL](http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tsqlref/ts_aa-az_2fsc.asp) operators. I still want to prove that using ANY, for example, is slower than using &#62;, &#60; or = instead. I'll put it on my to-do list.</description>
		<content:encoded><![CDATA[<p>Robert,</p>
<p>Maybe you&#8217;re right. Maybe Oracle introduced these comparison operators just because other databases have it, I do not know. I do know however that SQL Server has similar [ANY/SOME](http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tsqlref/ts_setu-sus_17jt.asp) and [ALL](http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tsqlref/ts_aa-az_2fsc.asp) operators. I still want to prove that using ANY, for example, is slower than using &gt;, &lt; or = instead. I&#8217;ll put it on my to-do list.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
