Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Unique constraint and NULL values

Re: Unique constraint and NULL values

From: David Portas <REMOVE_BEFORE_REPLYING_dportas_at_acm.org>
Date: Thu, 21 Oct 2004 23:49:08 +0100
Message-ID: <1rSdnf-sNa16oeXcRVn-tw@giganews.com>


> yes, in theory, the SQL Server approach is more 'pure'

Not really. The SQL standard consistently defines all the nullable constraints (CHECK, UNIQUE, FOREIGN KEY) in the negative. In other words, the constraint doesn't permit violations (logical FALSE) but nor does it require that the constraint be satisfied (logical TRUE). The UNKNOWN case is not considered a violation of a constraint, which is why NULLs are permitted. Unfortunately Microsoft disagrees ;-)

-- 
David Portas
SQL Server MVP
--
Received on Thu Oct 21 2004 - 17:49:08 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US