<?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/"
	
	xmlns:media="http://search.yahoo.com/mrss/"
		>
<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>
	<lastBuildDate>Fri, 26 Feb 2010 18:04:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: jan</title>
		<link>http://awads.net/wp/2005/08/09/any-some-and-all-in-oracle/comment-page-1/#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>&lt;p&gt;Anguang, 
&lt;i&gt;SELECT *
FROM emp
WHERE sal &gt;=800 AND sal &gt;=null;
This query can return rows. Why?&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;Optimization, as you can see with explain plan.
My guess: 800 is sorted higher as Null, so we&#039;ll only test sal &gt;=800.&lt;/p&gt;

&lt;p&gt;Interesting question though.&lt;/p&gt;

&lt;p&gt;Jan&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Anguang, 
<i>SELECT *
FROM emp
WHERE sal &gt;=800 AND sal &gt;=null;
This query can return rows. Why?</i></p>

<p>Optimization, as you can see with explain plan.
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-page-1/#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>&lt;p&gt;Great Post. After 5 years I have understand real meaning and usefullness of any and all..&lt;/p&gt;

&lt;p&gt;Hats Off&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;
</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-page-1/#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>&lt;p&gt;please tell me the querey of  &quot;&lt;/p&gt;

&lt;p&gt;i want to details of that manager who have reported maximum no. of employees.........from emp table.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>please tell me the querey of  &#8220;</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-page-1/#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-page-1/#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 &gt;=null&lt;/code&gt; is meaningless. It&#039;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-page-1/#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 &lt;&gt; ALL(800,1600,null);&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>What is the meaning of the following query?</p>

<p>SELECT * 
FROM emp
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-page-1/#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 &gt;=800 AND sal &gt;=null;
This query can return rows. Why?&lt;/p&gt;

&lt;p&gt;SELECT *
FROM emp
WHERE sal &gt;=null;
This query can not return rows. Why?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>SELECT *
FROM emp
WHERE sal &gt;=800 AND sal &gt;=null;
This query can return rows. Why?</p>

<p>SELECT *
FROM emp
WHERE sal &gt;=null;
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-page-1/#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-page-1/#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-page-1/#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>&lt;p&gt;Robert,&lt;/p&gt;

&lt;p&gt;Maybe you&#039;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 &lt;a href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tsqlref/ts_setu-sus_17jt.asp&quot;&gt;ANY/SOME&lt;/a&gt; and &lt;a href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tsqlref/ts_aa-az_2fsc.asp&quot;&gt;ALL&lt;/a&gt; operators. I still want to prove that using ANY, for example, is slower than using &gt;, &lt; or = instead. I&#039;ll put it on my to-do list.&lt;/p&gt;
</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 <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tsqlref/ts_setu-sus_17jt.asp">ANY/SOME</a> and <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tsqlref/ts_aa-az_2fsc.asp">ALL</a> 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>
