So I have a query. It works if I comment out the part checking for the exclusion.
WHERE H.BatchId = 3 AND H.IsExcluded != 1
IsExcluded is a bit field that accepts NULL values.
All the values I'm selecting from are NULL, so that SHOULD be right. What am I doing wrong? It's returning no values the way it is, but if I comment out just the 'AND' and after, it works.