I spent quite a bit of time understanding the mismatch of a language that supports nulls and SQL standards where c.col = null returns 0 rows even if c.col has rows with null in it. I began to wonder in what use cases would someone want to do c.col = null in a where clause in SQL.
I do clearly get that currently if I do WHERE c.col is null, I get back rows where c.col contains a null. This begs the question though, there must be a use and reason for c.col = null to have differing behavior. It must be used by someone, right? I am then curious the context of when we do that?
(I see tons of confusion on SO where people --including me-- thought that in SQL WHERE c.col=null would result in all rows that had null in column col). However, I also realize there is contexts I don't know about and am curious of the context when someone might do c.col = null.
thanks, Dean