<?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 ANY, SOME and ALL in Oracle</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/any_some_and_all_in_oracle/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Tue, 12 Aug 2008 02:48:33 -0000</lastBuildDate><item><title>Re: ANY, SOME and ALL in Oracle</title><link>http://awads.net/wp/2005/08/09/any-some-and-all-in-oracle/#comment-3657811</link><description>&lt;p&gt;Anguang, &lt;br&gt;&lt;i&gt;SELECT *&lt;br&gt;FROM emp&lt;br&gt;WHERE sal &amp;gt;=800 AND sal &amp;gt;=null;&lt;br&gt;This query can return rows. Why?&lt;/i&gt;&lt;/p&gt;&lt;p&gt;Optimization, as you can see with explain plan.&lt;br&gt;My guess: 800 is sorted higher as Null, so we'll only test sal &amp;gt;=800.&lt;/p&gt;&lt;p&gt;Interesting question though.&lt;/p&gt;&lt;p&gt;Jan&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">jan</dc:creator><pubDate>Tue, 12 Aug 2008 02:48:33 -0000</pubDate></item><item><title>Re: ANY, SOME and ALL in Oracle</title><link>http://awads.net/wp/2005/08/09/any-some-and-all-in-oracle/#comment-3657810</link><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><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Div Shah</dc:creator><pubDate>Wed, 11 Jun 2008 06:28:49 -0000</pubDate></item><item><title>Re: ANY, SOME and ALL in Oracle</title><link>http://awads.net/wp/2005/08/09/any-some-and-all-in-oracle/#comment-3657809</link><description>&lt;p&gt;please tell me the querey of  "&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><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sanjeet Kumar</dc:creator><pubDate>Tue, 01 Apr 2008 07:21:46 -0000</pubDate></item><item><title>Re: ANY, SOME and ALL in Oracle</title><link>http://awads.net/wp/2005/08/09/any-some-and-all-in-oracle/#comment-3657808</link><description>&lt;p&gt;Really it is very nice post , It clear my confusion between any and some.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">sandip</dc:creator><pubDate>Mon, 10 Sep 2007 05:18:02 -0000</pubDate></item><item><title>Re: ANY, SOME and ALL in Oracle</title><link>http://awads.net/wp/2005/08/09/any-some-and-all-in-oracle/#comment-3657807</link><description>&lt;p&gt;anguang, &lt;code&gt;sal &amp;gt;=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><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Eddie Awad</dc:creator><pubDate>Mon, 23 Apr 2007 01:55:59 -0000</pubDate></item><item><title>Re: ANY, SOME and ALL in Oracle</title><link>http://awads.net/wp/2005/08/09/any-some-and-all-in-oracle/#comment-3657806</link><description>&lt;p&gt;What is the meaning of the following query?&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;SELECT * &lt;br&gt;FROM emp&lt;br&gt;WHERE NOT manager_id &amp;lt;&amp;gt; ALL(800,1600,null);&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">anguang</dc:creator><pubDate>Sun, 22 Apr 2007 20:44:00 -0000</pubDate></item><item><title>Re: ANY, SOME and ALL in Oracle</title><link>http://awads.net/wp/2005/08/09/any-some-and-all-in-oracle/#comment-3657805</link><description>&lt;p&gt;SELECT *&lt;br&gt;FROM emp&lt;br&gt;WHERE sal &amp;gt;=800 AND sal &amp;gt;=null;&lt;br&gt;This query can return rows. Why?&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;SELECT *&lt;br&gt;FROM emp&lt;br&gt;WHERE sal &amp;gt;=null;&lt;br&gt;This query can not return rows. Why?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">anguang</dc:creator><pubDate>Sun, 22 Apr 2007 20:41:36 -0000</pubDate></item><item><title>Re: ANY, SOME and ALL in Oracle</title><link>http://awads.net/wp/2005/08/09/any-some-and-all-in-oracle/#comment-3657804</link><description>&lt;p&gt;Very very descriptive and useful... Hats Off...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bala</dc:creator><pubDate>Wed, 14 Mar 2007 10:55:10 -0000</pubDate></item><item><title>Re: ANY, SOME and ALL in Oracle</title><link>http://awads.net/wp/2005/08/09/any-some-and-all-in-oracle/#comment-3657803</link><description>&lt;p&gt;Nice post, however I believe these operators make less readable a given query.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jaime Lupa</dc:creator><pubDate>Thu, 25 Jan 2007 12:24:14 -0000</pubDate></item><item><title>Re: ANY, SOME and ALL in Oracle</title><link>http://awads.net/wp/2005/08/09/any-some-and-all-in-oracle/#comment-3657802</link><description>&lt;p&gt;Robert,&lt;/p&gt;&lt;p&gt;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](&lt;a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tsqlref/ts_setu-sus_17jt.asp)" rel="nofollow noopener" target="_blank" title="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tsqlref/ts_setu-sus_17jt.asp)"&gt;http://msdn.microsoft.com/l...&lt;/a&gt; and [ALL](&lt;a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tsqlref/ts_aa-az_2fsc.asp)" rel="nofollow noopener" target="_blank" title="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tsqlref/ts_aa-az_2fsc.asp)"&gt;http://msdn.microsoft.com/l...&lt;/a&gt; operators. I still want to prove that using ANY, for example, is slower than using &amp;gt;, &amp;lt; or = instead. I'll put it on my to-do list.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Eddie Awad</dc:creator><pubDate>Tue, 09 Aug 2005 23:11:40 -0000</pubDate></item><item><title>Re: ANY, SOME and ALL in Oracle</title><link>http://awads.net/wp/2005/08/09/any-some-and-all-in-oracle/#comment-3657801</link><description>&lt;p&gt;Interesting.&lt;/p&gt;&lt;p&gt;Since the query optimizer changes these to more traditional queries, I wonder why these keywords exist.&lt;/p&gt;&lt;p&gt;I imagine it was to some community of people to write their queries in a way that was more comfortable or understandable for them.&lt;/p&gt;&lt;p&gt;If so, I wonder in which database or language these key words have their origin.&lt;/p&gt;&lt;p&gt;What do you think?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Robert Vollman</dc:creator><pubDate>Tue, 09 Aug 2005 19:49:20 -0000</pubDate></item></channel></rss>