I was certain there was something like a “DifferentThan” method in SQL.
I am not looking for the <> operator, which will fail NULL comparisons.
For example, imagine a nullable bit column.
When checking for “not true” I could do something like this
WHERE COALESCE(myBit,0) = 0
and perhaps this is the best way… I’m not really interested in that. I’m particularly trying to remember the syntax for something like “DIFFERENTTHAN”
WHERE myBit DIFFERENTTHAN 1
EDIT: I’ve answered my own question below.
The syntax is
Which is in the ANSI standard but not included in MSSQLServer
http://www.sqlmag.com/article/sql-server/is-not-distinct-from