Re: 3 value logic. Why is SQL so special?
Date: Tue, 19 Sep 2006 04:23:49 GMT
Message-ID: <phKPg.22749$9u.270787_at_ursa-nb00s0.nbnet.nb.ca>
>>It's worse than that. Suppose one user can't be bothered to find out if the >>customer is insolvent and another user decides the null means insolvency or >>otherwise isn't a relevant attribute.
>
>
> I don't see the problem with NULLs. Yes you have to be careful when
> using nullable columns in queries, but it's not the mess that you guys
> make out (at least not in practical terms).
It's certainly easier (when
> writing queries) to deal with NULLs than to handle separate tables for
> every optional attribute,
which is the proposed solution (considering
> how many NULLs there are in a 'typical' database, the number of extra
> tables is enormous).
> This is one argument where the theory just does not seem to have a
> case, at least until SQL supports a better way of combining all the
> optional attributes of an entity together to make querying easier.
SQL never will, which is ultimately why SQL is irrelevant.
I
> mean, with the whole surrogate key vs natural key debate I can see both
> sides to the argument, and even though I wouldn't do it personally, I
> can see how a database with purely natural keys could work.
If you can see two sides to the same thing, you don't have a clue what you are talking about. A natural key is nothing more or less than a familiar surrogate.
But a
> database without NULLs? It might be theorectically correct, but it
> would be a nightmare to write queries against.
I disagree. My personal experience dealing with scores of intelligent database users suggests that NULL is the nightmare. Received on Tue Sep 19 2006 - 06:23:49 CEST