I have below data with some null values present.
flag
column has default values as NULL
test_table
Id flag
1 0
2 1
3 1
4 NULL
5 0
6 NULL
Now, when I write select query like
select Id from test_table where flag!=1
then it selects only data of ids 1 and 5 actually, it should select ids 1,4,5,6
why does this happen? whats the problem?