Comments on: ISNULL (Title, “NULL is an UNKNOWN, Not Empty!”) https://thomaslarock.com/2014/09/isnull-title-null-is-an-unknown-not-empty/ Thomas LaRock is an author, speaker, data expert, and SQLRockstar. He helps people connect, learn, and share. Along the way he solves data problems, too. Sun, 03 Sep 2017 01:46:06 +0000 hourly 1 https://wordpress.org/?v=6.7.2 By: Book Review: The Death of Expertise - Thomas LaRock https://thomaslarock.com/2014/09/isnull-title-null-is-an-unknown-not-empty/#comment-16111 Sun, 03 Sep 2017 01:46:06 +0000 http://thomaslarock.com/?p=11735#comment-16111 […] readers of this blog know a few things about me. You know about my hatred of NULLs and distrust of Wikipedia. You may also know I wrote a book review for The Cult […]

]]>
By: SQL Server Identity Values Check - Thomas LaRock https://thomaslarock.com/2014/09/isnull-title-null-is-an-unknown-not-empty/#comment-13488 Mon, 30 Nov 2015 15:09:33 +0000 http://thomaslarock.com/?p=11735#comment-13488 […] not appear in the result set. I decided to avoid the extra math involved for NULL values because you know how much I hate those things. Karen disagrees, of course, and will tell you the story about how her father has no middle name. […]

]]>
By: ThomasLaRock https://thomaslarock.com/2014/09/isnull-title-null-is-an-unknown-not-empty/#comment-12928 Tue, 30 Jun 2015 14:46:00 +0000 http://thomaslarock.com/?p=11735#comment-12928 In reply to ClaudeB.

Thanks for the comment!

]]>
By: ClaudeB https://thomaslarock.com/2014/09/isnull-title-null-is-an-unknown-not-empty/#comment-12927 Tue, 30 Jun 2015 06:09:00 +0000 http://thomaslarock.com/?p=11735#comment-12927 Hi Thomas, I get that you see the real issue is the people and not the NULL’s. However, I don’t think the argument is sufficient to say NULL’s are a bad idea. For example, you could probably mount a similar argument for zero. Lots of developers get confused and don’t allow for the case with resulting “divide by zero” errors.

I don’t think learning that being careful with division (or being careful with NULL-able columns) is so far beyond the pale that either should be removed.

Where I would agree with you is a strong statement that columns should not be NULL-able as a general rule and only if there is a specific and articulated meaning for the NULL value.

]]>
By: ThomasLaRock https://thomaslarock.com/2014/09/isnull-title-null-is-an-unknown-not-empty/#comment-12920 Sat, 27 Jun 2015 23:01:00 +0000 http://thomaslarock.com/?p=11735#comment-12920 In reply to quagmired.

Thanks for the comment. This example has to do with the documentation for Microsoft not matching what is in the product. I believe the confusion is that someone on the product team at Microsoft used an empty string when I believe they should have allowed it to be NULL.

]]>
By: ThomasLaRock https://thomaslarock.com/2014/09/isnull-title-null-is-an-unknown-not-empty/#comment-12919 Sat, 27 Jun 2015 23:00:00 +0000 http://thomaslarock.com/?p=11735#comment-12919 In reply to Bradley Peet.

Thanks for the comment and the feedback. I wrote the triggers post a long time ago, and I doubt I would write that post with the same voice today. This post is more recent and is part of an ongoing debate I have with others on when and how NULLs are used (or misused).

]]>
By: quagmired https://thomaslarock.com/2014/09/isnull-title-null-is-an-unknown-not-empty/#comment-12918 Sat, 27 Jun 2015 21:20:00 +0000 http://thomaslarock.com/?p=11735#comment-12918 In reply to Bradley Peet.

Here for the same reason. Empty string in particular is an important value, and it should be hammered into everyone’s skull that it is indeed not NULL. Strings over an alphabet being a well ordered set, ” is to strings what 0 is to non-negative numbers, it’s the identity element for string concat, yadda yadda yadda.

This example against NULL has nothing to do with NULL.
In this case, coalesce(rtrim(m.mirroring_state_desc),”) not in (”,’SYNCHRONIZED’) and move along.

]]>