dbTalk Databases Forums  

NULLs: theoretical problems?

comp.databases.theory comp.databases.theory


Discuss NULLs: theoretical problems? in the comp.databases.theory forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
sinister
 
Posts: n/a

Default NULLs: theoretical problems? - 08-08-2007 , 05:43 AM






Many discussions point out one deficiency of NULLs: that they collapse
multiple, distinct concepts into one ("no value possible," "value missing,"
"value not available at this time", etc).

What are the other theoretical problems? My impression from skimming some
threads in this ng is that some anomalies might occur, maybe having to do
with NULLs and joins, or NULLs and keys composed of more than one field, but
I'm not sure.



Reply With Quote
  #2  
Old   
Bob Badour
 
Posts: n/a

Default Re: NULLs: theoretical problems? - 08-08-2007 , 07:26 AM






sinister wrote:

Quote:
Many discussions point out one deficiency of NULLs: that they collapse
multiple, distinct concepts into one ("no value possible," "value missing,"
"value not available at this time", etc).

What are the other theoretical problems? My impression from skimming some
threads in this ng is that some anomalies might occur, maybe having to do
with NULLs and joins, or NULLs and keys composed of more than one field, but
I'm not sure.
The ultimate theoretical problem is a complete lack of any theory
underpinning NULL.


Reply With Quote
  #3  
Old   
Jan Hidders
 
Posts: n/a

Default Re: NULLs: theoretical problems? - 08-08-2007 , 09:20 AM



On 8 aug, 14:26, Bob Badour <bbad... (AT) pei (DOT) sympatico.ca> wrote:
Quote:
sinister wrote:
Many discussions point out one deficiency of NULLs: that they collapse
multiple, distinct concepts into one ("no value possible," "value missing,"
"value not available at this time", etc).

What are the other theoretical problems? My impression from skimming some
threads in this ng is that some anomalies might occur, maybe having to do
with NULLs and joins, or NULLs and keys composed of more than one field, but
I'm not sure.

The ultimate theoretical problem is a complete lack of any theory
underpinning NULL.
Just to avoid any misunderstandings: there has of course been lots of
theory on certain interpretations of null values, such as the work by
Raymond Reiter and by Joachim Biskup, but not on the specific meaning
(if you can call it that) that they were given in SQL. Whether that is
necessarily a big problem is IMO not so easy to say.

-- Jan Hidders



Reply With Quote
  #4  
Old   
Bob Badour
 
Posts: n/a

Default Re: NULLs: theoretical problems? - 08-08-2007 , 10:09 AM



Jan Hidders wrote:

Quote:
On 8 aug, 14:26, Bob Badour <bbad... (AT) pei (DOT) sympatico.ca> wrote:

sinister wrote:

Many discussions point out one deficiency of NULLs: that they collapse
multiple, distinct concepts into one ("no value possible," "value missing,"
"value not available at this time", etc).

What are the other theoretical problems? My impression from skimming some
threads in this ng is that some anomalies might occur, maybe having to do
with NULLs and joins, or NULLs and keys composed of more than one field, but
I'm not sure.

The ultimate theoretical problem is a complete lack of any theory
underpinning NULL.

Just to avoid any misunderstandings: there has of course been lots of
theory on certain interpretations of null values, such as the work by
Raymond Reiter and by Joachim Biskup, but not on the specific meaning
(if you can call it that) that they were given in SQL. Whether that is
necessarily a big problem is IMO not so easy to say.
In other words, some folks accept that NULL exists without any
theoretical underpinning and then create theories of interpretation. How
exactly does that differ from scriptural interpretation and theories
thereof?


Reply With Quote
  #5  
Old   
Gene Wirchenko
 
Posts: n/a

Default Re: NULLs: theoretical problems? - 08-08-2007 , 11:03 AM



Bob Badour <bbadour (AT) pei (DOT) sympatico.ca> wrote:

[snip]

Quote:
In other words, some folks accept that NULL exists without any
theoretical underpinning and then create theories of interpretation. How
exactly does that differ from scriptural interpretation and theories
thereof?
Null: computing science's da Vinci Code.

Sincerely,

Gene Wirchenko

Computerese Irregular Verb Conjugation:
I have preferences.
You have biases.
He/She has prejudices.


Reply With Quote
  #6  
Old   
David Cressey
 
Posts: n/a

Default Re: NULLs: theoretical problems? - 08-08-2007 , 12:19 PM




"sinister" <sinister (AT) nospam (DOT) invalid> wrote

Quote:
Many discussions point out one deficiency of NULLs: that they collapse
multiple, distinct concepts into one ("no value possible," "value
missing,"
"value not available at this time", etc).

What are the other theoretical problems? My impression from skimming some
threads in this ng is that some anomalies might occur, maybe having to do
with NULLs and joins, or NULLs and keys composed of more than one field,
but
I'm not sure.


"Nothin' ain't worth nothin', but it's free."
--Kris Kristofferson --




Reply With Quote
  #7  
Old   
Marshall
 
Posts: n/a

Default Re: NULLs: theoretical problems? - 08-08-2007 , 01:01 PM



On Aug 8, 7:20 am, Jan Hidders <hidd... (AT) gmail (DOT) com> wrote:
Quote:
On 8 aug, 14:26, Bob Badour <bbad... (AT) pei (DOT) sympatico.ca> wrote:

sinister wrote:
Many discussions point out one deficiency of NULLs: that they collapse
multiple, distinct concepts into one ("no value possible," "value missing,"
"value not available at this time", etc).

What are the other theoretical problems? My impression from skimming some
threads in this ng is that some anomalies might occur, maybe having to do
with NULLs and joins, or NULLs and keys composed of more than one field, but
I'm not sure.

The ultimate theoretical problem is a complete lack of any theory
underpinning NULL.

Just to avoid any misunderstandings: there has of course been lots of
theory on certain interpretations of null values, such as the work by
Raymond Reiter and by Joachim Biskup, but not on the specific meaning
(if you can call it that) that they were given in SQL. Whether that is
necessarily a big problem is IMO not so easy to say.
Yes; here we run into the complete lack of any theory of whether
something is necessarily a big problem or not.


Marshall

PS. It was funnier in my head.



Reply With Quote
  #8  
Old   
Jan Hidders
 
Posts: n/a

Default Re: NULLs: theoretical problems? - 08-08-2007 , 01:49 PM



On 8 aug, 17:09, Bob Badour <bbad... (AT) pei (DOT) sympatico.ca> wrote:
Quote:
Jan Hidders wrote:
On 8 aug, 14:26, Bob Badour <bbad... (AT) pei (DOT) sympatico.ca> wrote:

sinister wrote:

Many discussions point out one deficiency of NULLs: that they collapse
multiple, distinct concepts into one ("no value possible," "value missing,"
"value not available at this time", etc).

What are the other theoretical problems? My impression from skimming some
threads in this ng is that some anomalies might occur, maybe having to do
with NULLs and joins, or NULLs and keys composed of more than one field, but
I'm not sure.

The ultimate theoretical problem is a complete lack of any theory
underpinning NULL.

Just to avoid any misunderstandings: there has of course been lots of
theory on certain interpretations of null values, such as the work by
Raymond Reiter and by Joachim Biskup, but not on the specific meaning
(if you can call it that) that they were given in SQL. Whether that is
necessarily a big problem is IMO not so easy to say.

In other words, some folks accept that NULL exists without any
theoretical underpinning and then create theories of interpretation.
Indeed. Because, as we all know, proposing and investigating
alternatives is the same as accepting something's existence.

Quote:
How
exactly does that differ from scriptural interpretation and theories
thereof?
Exactly! Rejecting straight away null values in any form or shape
without any sort of investigation of their properties would have been
much more scientific. :-)

-- Jan Hidders



Reply With Quote
  #9  
Old   
Bob Badour
 
Posts: n/a

Default Re: NULLs: theoretical problems? - 08-08-2007 , 02:10 PM



Jan Hidders wrote:

Quote:
On 8 aug, 17:09, Bob Badour <bbad... (AT) pei (DOT) sympatico.ca> wrote:

Jan Hidders wrote:

On 8 aug, 14:26, Bob Badour <bbad... (AT) pei (DOT) sympatico.ca> wrote:

sinister wrote:

Many discussions point out one deficiency of NULLs: that they collapse
multiple, distinct concepts into one ("no value possible," "value missing,"
"value not available at this time", etc).

What are the other theoretical problems? My impression from skimming some
threads in this ng is that some anomalies might occur, maybe having to do
with NULLs and joins, or NULLs and keys composed of more than one field, but
I'm not sure.

The ultimate theoretical problem is a complete lack of any theory
underpinning NULL.

Just to avoid any misunderstandings: there has of course been lots of
theory on certain interpretations of null values, such as the work by
Raymond Reiter and by Joachim Biskup, but not on the specific meaning
(if you can call it that) that they were given in SQL. Whether that is
necessarily a big problem is IMO not so easy to say.

In other words, some folks accept that NULL exists without any
theoretical underpinning and then create theories of interpretation.

Indeed. Because, as we all know, proposing and investigating
alternatives is the same as accepting something's existence.


How
exactly does that differ from scriptural interpretation and theories
thereof?

Exactly! Rejecting straight away null values in any form or shape
without any sort of investigation of their properties would have been
much more scientific. :-)
That doesn't answer the question. How does it differ from scriptural
interpretation and theories thereof?


Reply With Quote
  #10  
Old   
Hugo Kornelis
 
Posts: n/a

Default Re: NULLs: theoretical problems? - 08-08-2007 , 02:30 PM



On Wed, 8 Aug 2007 06:43:53 -0400, sinister wrote:

Quote:
Many discussions point out one deficiency of NULLs: that they collapse
multiple, distinct concepts into one ("no value possible," "value missing,"
"value not available at this time", etc).
Hi sinister,

The deficiency in these discussions is that they fail to normalize the
design before starting to look at NULLs.

The ANSI standard defines NULL as follows:

"null value: A special value that is used to indicate the
absence of any data value."

Thus, the only concept collapsed into NULL is that of "no value here".

The concepts you mention are, indeed, various reasons why a value might
be missing. The specific reason might or might not be of interest to the
users of a database. If it's not, there's no need to let it bother us;
if it is, we need to properly model it.

<Sidestep>

How would you react if someone showed you a database model where the
contracts table had a single column to store both termination date and
the reason why the contract was terminated - I'm pretty sure that you'd
send the junior DBA who made that model back to class to study
normalisation rules, right?

How then would you react if you saw a model that tries to combine the
termination date and the reason why the contract is NOT terminated in a
single column?

</Sidestep>

And yet, that is exactly what some people try to do in the discussion of
NULLs. They see that a value might be missing (NULL) for various
reasons, which is of course correct. They assume that the reason why the
value is missing should be somehow stored or encoded in the database,
which is not necessarily correct but might be requireed for some
applications. And then they go on to state that this reason should be
stored or encoded in the same column where the missing value should have
been - i.e. they want to use a single column to store both the
termination date of a terminated contract and the reason why there is no
termination date of a (probably not terminated, though that's not even
sure) contract. And that is of course a violation of 1NF.

Unfortunately, many database theorists, including Codd and Date, either
failed to see this basic flaw in the discussion or deliberately
sidestepped it for convenience. This has led to many pointless
discussions on using A-marks and I-marks, and how that would lead to
fourvalued logic and still not suffice, and so on....

I made this same point, but in different words, about a month ago on my
blog:
http://sqlblog.com/blogs/hugo_kornel...lack-hole.aspx

Best, Hugo


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.