<?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/"
		>
<channel>
	<title>Comments on: Anti-Search patterns &#8211; SQL to look for what is NOT there &#8211; Part One</title>
	<atom:link href="http://technology.amis.nl/2010/12/20/anti-search-patterns-sql-to-look-for-what-is-not-there-part-one/feed/" rel="self" type="application/rss+xml" />
	<link>http://technology.amis.nl/2010/12/20/anti-search-patterns-sql-to-look-for-what-is-not-there-part-one/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=anti-search-patterns-sql-to-look-for-what-is-not-there-part-one</link>
	<description></description>
	<lastBuildDate>Fri, 12 Apr 2013 10:04:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Lucas Jellema</title>
		<link>http://technology.amis.nl/2010/12/20/anti-search-patterns-sql-to-look-for-what-is-not-there-part-one/#comment-6421</link>
		<dc:creator>Lucas Jellema</dc:creator>
		<pubDate>Wed, 22 Dec 2010 06:42:32 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=9437#comment-6421</guid>
		<description><![CDATA[&lt;p&gt;Hi Laurent,&lt;/p&gt;
&lt;p&gt;Â &lt;/p&gt;
&lt;p&gt;Dirty trick or not - I like it!&lt;/p&gt;
&lt;p&gt;thanks for the contribution to the collection.&lt;/p&gt;
&lt;p&gt;Lucas&lt;/p&gt;]]></description>
		<content:encoded><![CDATA[<p>Hi Laurent,</p>
<p>Â </p>
<p>Dirty trick or not &#8211; I like it!</p>
<p>thanks for the contribution to the collection.</p>
<p>Lucas</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Laurent Schneider</title>
		<link>http://technology.amis.nl/2010/12/20/anti-search-patterns-sql-to-look-for-what-is-not-there-part-one/#comment-6420</link>
		<dc:creator>Laurent Schneider</dc:creator>
		<pubDate>Mon, 20 Dec 2010 19:09:42 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=9437#comment-6420</guid>
		<description><![CDATA[@Anton: did you try your query :-))
@lucas : without subquery, without join, with some dirty trick

create or replace type tn as table of number(4)
/

SELECT DISTINCT
 CASE
 WHEN empno NOT MEMBER OF
 CAST (
 COLLECT (DISTINCT mgr) OVER () AS tn
 )
 THEN ename
 END ename
FROM emp
ORDER BY 1;

ENAME
----------
 ADAMS
ALLEN
JAMES
MARTIN
MILLER
SMITH
TURNER
WARD]]></description>
		<content:encoded><![CDATA[<p>@Anton: did you try your query <img src='http://technology.amis.nl/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> )<br />
@lucas : without subquery, without join, with some dirty trick</p>
<p>create or replace type tn as table of number(4)<br />
/</p>
<p>SELECT DISTINCT<br />
 CASE<br />
 WHEN empno NOT MEMBER OF<br />
 CAST (<br />
 COLLECT (DISTINCT mgr) OVER () AS tn<br />
 )<br />
 THEN ename<br />
 END ename<br />
FROM emp<br />
ORDER BY 1;</p>
<p>ENAME<br />
&#8212;&#8212;&#8212;-<br />
 ADAMS<br />
ALLEN<br />
JAMES<br />
MARTIN<br />
MILLER<br />
SMITH<br />
TURNER<br />
WARD</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Timo Raitalaakso</title>
		<link>http://technology.amis.nl/2010/12/20/anti-search-patterns-sql-to-look-for-what-is-not-there-part-one/#comment-6419</link>
		<dc:creator>Timo Raitalaakso</dc:creator>
		<pubDate>Mon, 20 Dec 2010 13:24:16 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=9437#comment-6419</guid>
		<description><![CDATA[Do you actually get desired results with not in? s.mgr may be null.]]></description>
		<content:encoded><![CDATA[<p>Do you actually get desired results with not in? s.mgr may be null.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anti-Search patterns â€“ SQL to look for what is NOT there â€“ Part &#8230; &#171; Cache</title>
		<link>http://technology.amis.nl/2010/12/20/anti-search-patterns-sql-to-look-for-what-is-not-there-part-one/#comment-6418</link>
		<dc:creator>Anti-Search patterns â€“ SQL to look for what is NOT there â€“ Part &#8230; &#171; Cache</dc:creator>
		<pubDate>Mon, 20 Dec 2010 12:02:42 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=9437#comment-6418</guid>
		<description><![CDATA[[...] Read more from the original source: Anti-Search patterns â€“ SQL to look for what is NOT there â€“ Part &#8230; [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Read more from the original source: Anti-Search patterns â€“ SQL to look for what is NOT there â€“ Part &#8230; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anton Scheffer</title>
		<link>http://technology.amis.nl/2010/12/20/anti-search-patterns-sql-to-look-for-what-is-not-there-part-one/#comment-6417</link>
		<dc:creator>Anton Scheffer</dc:creator>
		<pubDate>Mon, 20 Dec 2010 09:19:09 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=9437#comment-6417</guid>
		<description><![CDATA[You missed, at least, one more way to find the managers without subordinates:
select enameÂ 
fromÂ Â  emp eÂ 
whereÂ  e.empno not in ( select s.mgr
Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â  fromÂ Â  emp s
Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â  )]]></description>
		<content:encoded><![CDATA[<p>You missed, at least, one more way to find the managers without subordinates:<br />
select enameÂ <br />
fromÂ Â  emp eÂ <br />
whereÂ  e.empno not in ( select s.mgr<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â  fromÂ Â  emp s<br />
Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â  )</p>
]]></content:encoded>
	</item>
</channel>
</rss>
