I'm trying to run a query where two columns are not the same, but it's not returning any results:
SELECT * FROM `my_table` WHERE `column_a` != `column_b`;
column_a AND column_b are of integer type and can contain nulls. I've tried using <> IS NOT, etc without any luck. It's easy to find if they're the same using <=>, but <> and != doesn't return any rows. (using Mysql 5.0).
Thoughts?