I see a thread here: Why does PostgreSQL not return null values when the condition is <> true with answers explaining why it happens but I'm still not sure how to fix it.
I'm running a query similar to this:
SELECT * FROM beers WHERE name != 'Budlight';
I expect it to return rows where name is not equal to Budlight. The results should include rows where name is NULL. Instead my results shows rows where name is not Budlight or NULL.
How can I form the query where only rows where name is not Budlight are ommitted from results?
SQLFiddle: http://www.sqlfiddle.com/#!15/7b9bd/1