IS NULL versus <> 1 SQL bit
问题 I have a bit column on a table in a SQL Server 2012 database. I am trying to retrieve all the rows where this bit column is either NULL or NOT TRUE. This query does not bring back what it should: (returns 0 rows) Select * from table where bit_column_value <> 1 This query brings back the correct rows: Select * from table where bit_column_value IS NULL Now, I'd be happy to use the second query, but my issue is that, in a similar query for another table, the reverse of the above is true, where