|
Archives of the TeradataForumMessage Posted: Tue, 28 Oct 2003 @ 08:56:37 GMT
Narayan, Yes it's correct. You are asking the dbms to compare two values (in this case both of them are NULL) and give you a row in the result set where they are equal. In the dbms world, NULL represents an "unknown" value, so you are effectively asking; Is one unknown value equal to another unknown value ? Logic dictates that the answer to this question can never be accurately known, and so the dbms must assume that the answer is FALSE, hence the row does not end up in the answer set. I'm not certain but I suspect that most dbms's will generate the same answer. As per the SQL manuals the only way to explicitly search for null is by using IS NULL or IS NOT NULL. If your question is; Is one value equal to another ? and you want to treat two NULLs as equal then the sql to use is: Cheers, Dave
| ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||