<?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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Gullible about Nullable – Stuff I thought I knew&#8230;and didn&#8217;t</title>
	<atom:link href="http://mikesmithers.wordpress.com/2010/06/21/gullible-about-nullable-%E2%80%93-stuff-i-thought-i-knew-and-didnt/feed/" rel="self" type="application/rss+xml" />
	<link>http://mikesmithers.wordpress.com/2010/06/21/gullible-about-nullable-%e2%80%93-stuff-i-thought-i-knew-and-didnt/</link>
	<description>Oracle - for when it was like that when you got there</description>
	<lastBuildDate>Sat, 15 Jun 2013 15:04:13 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Simon (yea and verily - for tis me)</title>
		<link>http://mikesmithers.wordpress.com/2010/06/21/gullible-about-nullable-%e2%80%93-stuff-i-thought-i-knew-and-didnt/#comment-506</link>
		<dc:creator><![CDATA[Simon (yea and verily - for tis me)]]></dc:creator>
		<pubDate>Tue, 22 Jun 2010 09:47:25 +0000</pubDate>
		<guid isPermaLink="false">http://mikesmithers.wordpress.com/?p=484#comment-506</guid>
		<description><![CDATA[In that far off theme park called Teradataland (the rides are big, but a bit dull), we&#039;re always taught that NULL effectively has no meaning - it cannot be equated to (or, by derivation, specifically not equated to), so NULL = NULL is false, NULL  NULL is also false as is  = NULL etc. etc. - it can only be tested using IS NULL and IS NOT NULL. There are a few functions like ZeroIfNULL and COALESCE that deal with it as well, similarly to NVL.

All the above examples have identical outcomes on Teradata, incidentally, except the NVL one, as that doesn&#039;t exist as a keyword on T12.

However, the most efficient method I&#039;ve found to do what you&#039;re last query is doing (on Teradata) is:
SELECT b.bloke_name
FROM
 beauty b
   LEFT JOIN
 truth t
     ON  t.bloke_name = b.bloke_name
WHERE t.bloke_name IS NULL
;

Don&#039;t let the DBAs tell you otherwise - this works when other methods don&#039;t (on huge tables when properly indexed) and is significantly faster.

I tried to work in &#039;RIGHT JOIN Claude&#039;, but it got too contrived - sorry, that&#039;s an in-joke that shouldn&#039;t go on blogs, I guess.

Gotta do some real work now - day off tomorrow vuvuzela-ing for Engerland.

Cheers

Si M...]]></description>
		<content:encoded><![CDATA[<p>In that far off theme park called Teradataland (the rides are big, but a bit dull), we&#8217;re always taught that NULL effectively has no meaning &#8211; it cannot be equated to (or, by derivation, specifically not equated to), so NULL = NULL is false, NULL  NULL is also false as is  = NULL etc. etc. &#8211; it can only be tested using IS NULL and IS NOT NULL. There are a few functions like ZeroIfNULL and COALESCE that deal with it as well, similarly to NVL.</p>
<p>All the above examples have identical outcomes on Teradata, incidentally, except the NVL one, as that doesn&#8217;t exist as a keyword on T12.</p>
<p>However, the most efficient method I&#8217;ve found to do what you&#8217;re last query is doing (on Teradata) is:<br />
SELECT b.bloke_name<br />
FROM<br />
 beauty b<br />
   LEFT JOIN<br />
 truth t<br />
     ON  t.bloke_name = b.bloke_name<br />
WHERE t.bloke_name IS NULL<br />
;</p>
<p>Don&#8217;t let the DBAs tell you otherwise &#8211; this works when other methods don&#8217;t (on huge tables when properly indexed) and is significantly faster.</p>
<p>I tried to work in &#8216;RIGHT JOIN Claude&#8217;, but it got too contrived &#8211; sorry, that&#8217;s an in-joke that shouldn&#8217;t go on blogs, I guess.</p>
<p>Gotta do some real work now &#8211; day off tomorrow vuvuzela-ing for Engerland.</p>
<p>Cheers</p>
<p>Si M&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
