<?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: When to use a relational database: ternary logic</title>
	<atom:link href="http://whathesaid.ca//2006/07/29/when-to-use-a-relational-database-ternary-logic/feed/" rel="self" type="application/rss+xml" />
	<link>http://whathesaid.ca/2006/07/29/when-to-use-a-relational-database-ternary-logic/</link>
	<description>Techie, Teachie, North of 60°</description>
	<lastBuildDate>Thu, 12 Jan 2012 19:31:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Dave</title>
		<link>http://whathesaid.ca/2006/07/29/when-to-use-a-relational-database-ternary-logic/comment-page-1/#comment-4323</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Fri, 28 Mar 2008 01:56:56 +0000</pubDate>
		<guid isPermaLink="false">http://whathesaid.ca/2006/07/29/when-to-use-a-relational-database-ternary-logic/#comment-4323</guid>
		<description>John,

I wouldn&#039;t worry about space, since a text/blob or varchar column will only take up a small amount of overhead if left empty and you may not get any of that back for a NULL anyway. The separate table idea is probably the most space-efficient, although it allows an item to have multiple notes if you&#039;re not careful about the PK (but maybe that&#039;s not a problem anyway).

As for allowing NULL values for your notes or comments, unless you can clearly define the difference between a NULL note and an empty note, and see that definition as useful, I&#039;d go with NOT NULL. NULL has its place, but avoiding it should be your default option.</description>
		<content:encoded><![CDATA[<p>John,</p>
<p>I wouldn&#8217;t worry about space, since a text/blob or varchar column will only take up a small amount of overhead if left empty and you may not get any of that back for a NULL anyway. The separate table idea is probably the most space-efficient, although it allows an item to have multiple notes if you&#8217;re not careful about the PK (but maybe that&#8217;s not a problem anyway).</p>
<p>As for allowing NULL values for your notes or comments, unless you can clearly define the difference between a NULL note and an empty note, and see that definition as useful, I&#8217;d go with NOT NULL. NULL has its place, but avoiding it should be your default option.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Marabeas</title>
		<link>http://whathesaid.ca/2006/07/29/when-to-use-a-relational-database-ternary-logic/comment-page-1/#comment-4288</link>
		<dc:creator>John Marabeas</dc:creator>
		<pubDate>Tue, 25 Mar 2008 03:49:10 +0000</pubDate>
		<guid isPermaLink="false">http://whathesaid.ca/2006/07/29/when-to-use-a-relational-database-ternary-logic/#comment-4288</guid>
		<description>With all you said, would it be okay to include a &quot;notes&quot; field (tinyblob datatype, let&#039;s say) in, say, a members table even though not every member will have a note associated with him/her?  That being the case, would I assign a &quot;NULL&quot; value to the field so as waste a minimum amount of storage space if the field is left blank for those members with no notes?  (Or should a separate table me made (called &quot;notes&quot;) such that it will only contain information if there are notes associated with those members who have them)?</description>
		<content:encoded><![CDATA[<p>With all you said, would it be okay to include a &#8220;notes&#8221; field (tinyblob datatype, let&#8217;s say) in, say, a members table even though not every member will have a note associated with him/her?  That being the case, would I assign a &#8220;NULL&#8221; value to the field so as waste a minimum amount of storage space if the field is left blank for those members with no notes?  (Or should a separate table me made (called &#8220;notes&#8221;) such that it will only contain information if there are notes associated with those members who have them)?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

