<?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: Should you have NULL&#8217;s in your database?</title>
	<atom:link href="http://blog.afoolishmanifesto.com/archives/909/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.afoolishmanifesto.com/archives/909</link>
	<description>fREWdiculous!</description>
	<lastBuildDate>Fri, 30 Jul 2010 15:07:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: NULL Conclusion &#124; A Foolish Manifesto</title>
		<link>http://blog.afoolishmanifesto.com/archives/909/comment-page-1#comment-231</link>
		<dc:creator>NULL Conclusion &#124; A Foolish Manifesto</dc:creator>
		<pubDate>Tue, 14 Jul 2009 06:36:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.afoolishmanifesto.com/?p=909#comment-231</guid>
		<description>[...] a couple perl giants I have already heard of responded to my previous post regarding NULL&#8217;s in the database. NULL means “this piece of information exists but is [...]</description>
		<content:encoded><![CDATA[<p>[...] a couple perl giants I have already heard of responded to my previous post regarding NULL&#8217;s in the database. NULL means “this piece of information exists but is [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ovid</title>
		<link>http://blog.afoolishmanifesto.com/archives/909/comment-page-1#comment-230</link>
		<dc:creator>Ovid</dc:creator>
		<pubDate>Mon, 13 Jul 2009 14:32:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.afoolishmanifesto.com/?p=909#comment-230</guid>
		<description>I&#039;ve a blog entry about this (http://use.perl.org/~Ovid/journal/27927).  Basically, NULLs can lead to queries which are logically impossible to get correct answers for.  They&#039;re rare, but I&#039;ve hit them on larger queries and they&#039;re a nightmare to debug.

There&#039;s also the problem of what a NULL is supposed to represent.  Is the data unknown? Is it not applicable?  Is it something else entirely?  I often see NULL values in a databsae where people have tried to overload the meaning of NULL and it&#039;s done on an ad hoc basis.  For example, consider a &quot;salary&quot; field in a database.  Why would it be NULL? Are they unemployed? Are they a volunteer? Do you simply not know it? Are they hourly and therefore not salaried? A NULL value could potenitally have four different meanings.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve a blog entry about this (<a href="http://use.perl.org/~Ovid/journal/27927" rel="nofollow">http://use.perl.org/~Ovid/journal/27927</a>).  Basically, NULLs can lead to queries which are logically impossible to get correct answers for.  They&#8217;re rare, but I&#8217;ve hit them on larger queries and they&#8217;re a nightmare to debug.</p>
<p>There&#8217;s also the problem of what a NULL is supposed to represent.  Is the data unknown? Is it not applicable?  Is it something else entirely?  I often see NULL values in a databsae where people have tried to overload the meaning of NULL and it&#8217;s done on an ad hoc basis.  For example, consider a &#8220;salary&#8221; field in a database.  Why would it be NULL? Are they unemployed? Are they a volunteer? Do you simply not know it? Are they hourly and therefore not salaried? A NULL value could potenitally have four different meanings.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ruz</title>
		<link>http://blog.afoolishmanifesto.com/archives/909/comment-page-1#comment-229</link>
		<dc:creator>ruz</dc:creator>
		<pubDate>Mon, 13 Jul 2009 11:14:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.afoolishmanifesto.com/?p=909#comment-229</guid>
		<description>You&#039;re right, all that &quot;NULLs must die&quot; is about empty strings, while I think that empty string should be treated as NULL. Oracle does this.</description>
		<content:encoded><![CDATA[<p>You&#8217;re right, all that &#8220;NULLs must die&#8221; is about empty strings, while I think that empty string should be treated as NULL. Oracle does this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt S Trout</title>
		<link>http://blog.afoolishmanifesto.com/archives/909/comment-page-1#comment-228</link>
		<dc:creator>Matt S Trout</dc:creator>
		<pubDate>Sun, 12 Jul 2009 18:26:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.afoolishmanifesto.com/?p=909#comment-228</guid>
		<description>NULL means &quot;this piece of information exists but is unknown to us&quot;. Follow this simple rule when deciding whether to allow things to be NULL or not and you&#039;re basically sorted - and the standard SQL logic will suddenly work with you rather than against.

Until you do a LEFT JOIN and discover that it uses NULLs for &quot;doesn&#039;t exist&quot; in there ... but anyway ...</description>
		<content:encoded><![CDATA[<p>NULL means &#8220;this piece of information exists but is unknown to us&#8221;. Follow this simple rule when deciding whether to allow things to be NULL or not and you&#8217;re basically sorted &#8211; and the standard SQL logic will suddenly work with you rather than against.</p>
<p>Until you do a LEFT JOIN and discover that it uses NULLs for &#8220;doesn&#8217;t exist&#8221; in there &#8230; but anyway &#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
