In this table , if I make following query
select * from table where order_id != 1
I think, I am supposed to get row no 18 & 19. But instead, the query can't not fetch any row.
I can rewrite the query like this
select * from table where (order_id != 1 or order_id is null)
and it fetches the expected data, but should not the first query being able to fetch the row no 18 & 19?

order_idin the table?<>instead of!=as its not a straight forward binary comaprison. check these 2 threads and you should be good to go with better understanding! :) thread_1 , thread_2select * from table where order_id <> 1doesn't work also, no row is pickedselect * from table where order_id <> 1 or order_id is NULL, your query will not considerNULLrows buddy! :)