<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>generally agree on FromDual GmbH</title><link>https://www.fromdual.com/blog/using-null-as-default-values/comment-251/</link><description>Recent content in generally agree on FromDual GmbH</description><generator>Hugo</generator><language>en-GB</language><managingEditor>oli.sennhauser@fromdual.com (Oli Sennhauser)</managingEditor><webMaster>oli.sennhauser@fromdual.com (Oli Sennhauser)</webMaster><copyright>© FromDual GmbH</copyright><lastBuildDate>Mon, 25 Jul 2011 12:29:30 +0200</lastBuildDate><atom:link href="https://www.fromdual.com/blog/using-null-as-default-values/comment-251/index.xml" rel="self" type="application/rss+xml"/><item><title>generally agree</title><link>https://www.fromdual.com/blog/using-null-as-default-values/comment-251/</link><pubDate>Mon, 25 Jul 2011 12:29:30 +0200</pubDate><author>oli.sennhauser@fromdual.com (Oli Sennhauser)</author><guid>https://www.fromdual.com/blog/using-null-as-default-values/comment-251/</guid><description>&lt;p&gt;I do generally agree with the &amp;ldquo;Conclusion&amp;rdquo; mentioned at the end of this entry.
It will be a topic of different post to discuss and convince people to normalize data if you see too many NULLable columns in the database.&lt;/p&gt;
&lt;p&gt;@Stephane
This is how nulls are treated by design. For e.g. you may claim that the count of * and count of city should be equal which is not in case of NULL.&lt;/p&gt;
&lt;p&gt;mysql&amp;gt; select count(&lt;em&gt;), count(city) from t;
+&amp;mdash;&amp;mdash;&amp;mdash;-+&amp;mdash;&amp;mdash;&amp;mdash;&amp;mdash;-+
| count(&lt;/em&gt;) | count(city) |
+&amp;mdash;&amp;mdash;&amp;mdash;-+&amp;mdash;&amp;mdash;&amp;mdash;&amp;mdash;-+
| 1 | 0 |
+&amp;mdash;&amp;mdash;&amp;mdash;-+&amp;mdash;&amp;mdash;&amp;mdash;&amp;mdash;-+
1 row in set (0.00 sec)&lt;/p&gt;</description></item></channel></rss>