<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Database Design: Do Not Fear NULLs</title><link>http://blogs.technet.com/wardpond/archive/2005/10/29/database-design-do-not-fear-nulls.aspx</link><description>A brief discourse on what NULLity means, how it works in the database, how to use it, and examples of its misuse.</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Database Design: Do Not Fear NULLs</title><link>http://blogs.technet.com/wardpond/archive/2005/10/29/database-design-do-not-fear-nulls.aspx#413353</link><pubDate>Mon, 31 Oct 2005 15:19:18 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:413353</guid><dc:creator>Juan José</dc:creator><description>Great article. I agree :)</description></item><item><title>re: Database Design: Do Not Fear NULLs</title><link>http://blogs.technet.com/wardpond/archive/2005/10/29/database-design-do-not-fear-nulls.aspx#414935</link><pubDate>Tue, 22 Nov 2005 18:39:58 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:414935</guid><dc:creator>Eric</dc:creator><description>I also tend to use NULL.  However, I have seen others use the NOT NULL DEFAULT &amp;quot;&amp;quot; and insist it is better that NULLS.  One of the main reasons they give is that a NULL value cannot be indexed, and therefore slows down searches.  Anythoughts on this?&lt;br&gt;</description></item><item><title>re: Database Design: Do Not Fear NULLs</title><link>http://blogs.technet.com/wardpond/archive/2005/10/29/database-design-do-not-fear-nulls.aspx#414980</link><pubDate>Wed, 23 Nov 2005 09:54:05 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:414980</guid><dc:creator>Ward Pond</dc:creator><description>Thanks for your question, Eric.  My answer got so involved, it turned into a post.  Please let me know your thoughts..&lt;br&gt;&lt;br&gt;	-wp</description></item><item><title>Slight Ado About Nothing: More On NULLs</title><link>http://blogs.technet.com/wardpond/archive/2005/10/29/database-design-do-not-fear-nulls.aspx#419882</link><pubDate>Sat, 18 Feb 2006 10:36:07 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:419882</guid><dc:creator>Ward Pond's SQL Server blog</dc:creator><description>More on NULLs: a reader asks if NULLs slow down searches.</description></item><item><title>http://abtech.blackboard.com/webapps/blackboard/content/listcontent.jsp?course_id=_1281_1&amp;content_id=_195108_1</title><link>http://blogs.technet.com/wardpond/archive/2005/10/29/database-design-do-not-fear-nulls.aspx#670559</link><pubDate>Sat, 03 Mar 2007 08:20:23 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:670559</guid><dc:creator>TrackBack</dc:creator><description /></item><item><title>http://abtech.blackboard.com/webapps/blackboard/content/listcontent.jsp?course_id=_1042_1&amp;content_id=_195300_1</title><link>http://blogs.technet.com/wardpond/archive/2005/10/29/database-design-do-not-fear-nulls.aspx#670563</link><pubDate>Sat, 03 Mar 2007 08:25:28 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:670563</guid><dc:creator>TrackBack</dc:creator><description /></item><item><title>re: Database Design: Do Not Fear NULLs</title><link>http://blogs.technet.com/wardpond/archive/2005/10/29/database-design-do-not-fear-nulls.aspx#3109403</link><pubDate>Thu, 21 Aug 2008 05:09:44 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3109403</guid><dc:creator>Mark Johansen</dc:creator><description>&lt;p&gt;I agree completely, but let me add a clarification: Blank should mean &amp;quot;none&amp;quot; or &amp;quot;does not apply&amp;quot; or whatever makes sense in context, while null means &amp;quot;unknown&amp;quot;. Confusing these two things is huge problem in a lot of systems. To take an example I used in my book &amp;quot;A Sane Approach to Database Design&amp;quot; available at electrictactics.com (shameless plug for my book), suppose on a loan application we want to check the applicant's credit history and also his or her spouse's credit history. So we have a screen field for &amp;quot;Applicant Social Security Number&amp;quot; and another for &amp;quot;Spouse Social Security Number&amp;quot;. If the second field is blank, does that mean that the applicant is not married and so there is no spouse credit history to check? Or does it mean that at the time he visited the bank to apply for the loan, he didn't know his wife's SSN?&lt;/p&gt;
&lt;p&gt;Sometimes when I make a point like this, someone will object that we should just create another field to tell us, like in this case, a &amp;quot;marital status&amp;quot; field. But then we're creating two fields with overlapping information. What does it mean if we check the &amp;quot;Unmarried&amp;quot; box and then fill in a spouse SSN? Redundant data like this forces us to do additional error checking.&lt;/p&gt;
&lt;p&gt;Similar things apply to numbers. Suppose a data entry screen asks us to enter, say, the number of years of SQL experience that a job applicant has. The person entering the data finds the number on the job seeker's application form illegible. If there is no way to say &amp;quot;unknown&amp;quot;, what is the user supposed to enter? Zero? But saying a person has no experience and saying that you don't know how much experience they have are two very very different things.&lt;/p&gt;
&lt;p&gt;I visited a real estate site recently that listed the selling price of a certain house as $0. Are they really giving this house away for free? What, is it haunted or something? I can pretty much guess that in this case 0 meant &amp;quot;unknown&amp;quot;. But statisticians routinely calculate the average selling price of a house in this or that city. If they're not careful in their programming, a few $0 houses in the database could make it look like property values are plummetting.&lt;/p&gt;
</description></item><item><title>Nullity: The Gift (of Nothingness) That Keeps On Giving</title><link>http://blogs.technet.com/wardpond/archive/2005/10/29/database-design-do-not-fear-nulls.aspx#3121683</link><pubDate>Wed, 10 Sep 2008 01:01:51 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3121683</guid><dc:creator>Ward Pond's SQL Server blog</dc:creator><description>&lt;p&gt;Almost three years after the post was originally published in October of 2005, Mark Johansen, author&lt;/p&gt;
</description></item></channel></rss>