<?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: Oracle conditions and how they handle NULL</title>
	<atom:link href="http://www.lifeaftercoffee.com/2005/09/28/oracle-conditions-and-how-they-handle-null/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lifeaftercoffee.com/2005/09/28/oracle-conditions-and-how-they-handle-null/</link>
	<description>because I don't believe in life before coffee...</description>
	<lastBuildDate>Wed, 23 Nov 2011 03:01:12 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: John</title>
		<link>http://www.lifeaftercoffee.com/2005/09/28/oracle-conditions-and-how-they-handle-null/comment-page-1/#comment-158135</link>
		<dc:creator>John</dc:creator>
		<pubDate>Thu, 26 Apr 2007 22:48:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.lifeaftercoffee.com/?p=75#comment-158135</guid>
		<description>Another crazy twist to this is with dates.  If the date is null then you cannot compare it to a value date.  So if you say something like 

SELECT * FROM table a
where a.date1  a.date2

if date1 is null and there is a value in date2 then you would think that that row would return but it does not.

If you want to include nulls in your not equal to comparator then something like this will work:

SELECT * FROM table a
where nvl(to_char(a.date1,&#039;dd&#039;),&#039; &#039;)  a.date2</description>
		<content:encoded><![CDATA[<p>Another crazy twist to this is with dates.  If the date is null then you cannot compare it to a value date.  So if you say something like </p>
<p>SELECT * FROM table a<br />
where a.date1  a.date2</p>
<p>if date1 is null and there is a value in date2 then you would think that that row would return but it does not.</p>
<p>If you want to include nulls in your not equal to comparator then something like this will work:</p>
<p>SELECT * FROM table a<br />
where nvl(to_char(a.date1,&#8217;dd&#8217;),&#8217; &#8216;)  a.date2</p>
]]></content:encoded>
	</item>
</channel>
</rss>

