| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: Does Codd's view of a relational database differ from that ofDate& Darwin? [M.Gittens]
Alfredo Novoa wrote:
>>Why not say then that all aggregates that involve a NULL return NULL?
Are you sure? I've just tried summing a column that contains a NULL in PostgreSQL and it doesn't return NULL - it treats the NULLs as zeros.
>>So could this actually be another problem with SQL's treatment of NULLs >>rather than with NULLs per se?
I'm not asking whether the fact that NULLs are cumbersome and errorprone is inherent to NULLs, but whether a DBMS with NULLs will always have queries that return incorrect results (as per Date's example with the EXISTS clause).
Could it be that a variant of SQL exists that has NULLs, so might be considered cumbersome (a somewhat subjective opinion?), but has zero logical inconsistencies?
Paul. Received on Tue Jun 07 2005 - 07:23:32 CDT
![]() |
![]() |