I recently was running a query on a data column that contained strings, empty strings and nulls. I wanted to keep everything but the empty strings so naturally I did something like
WHERE my_row <> ''
However I discovered that this also removed my nulls. :(
I did a little poking around and found
SELECT NULL = '' -- Returns False. No surprise here
But
SELECT NULL <> '' -- Also returns False. Huh?
Can someone explain this to me?