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

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -