sql - Problem in WHERE clause -
So I have a query. This works if I am checking for a boycott.
WHERE H.BatchId = 3 and H.Iscluded! = 1
IsExcluded is a bit field that accepts zero values.
The standards I am selecting from are all tapes, so it should be right. What am I doing wrong? The way this is not returning any value, but if I just comment 'and' and after that, then it works.
where H. BatchID = 3 and (containing HI! = 1 or H.I.IdmixedIt is null)
Comments
Post a Comment