Assume a table X like so:
A | B
----------------
2 pqr
3 xyz
*NULL* abc
When I execute a query like:
SELECT *
FROM X
WHERE A <> 2
I expect a result set like this:
A | B
----------------
3 xyz
*NULL* abc
But to my surprise, I get a result set like this :
A | B
----------------
3 xyz
Why does the row with NULL
value not appear in the result set?
Can somebody explain this behavior ?