;
;-\)
I have a query like
SELECT * FROM tbl WHERE A='x' AND B='y' AND C<>'printed'
C is either null, "printed", or some error message.
It works fine as long as C has a non-null value.
I know I am missing something.
I have also tried
AND (C=Null OR C<>'printed')
I can fix my code to always put something in C, but I would like to
understand the problem.
SELECT * FROM tbl WHERE A='x' AND B='y' AND C<>'printed'
C is either null, "printed", or some error message.
It works fine as long as C has a non-null value.
I know I am missing something.
I have also tried
AND (C=Null OR C<>'printed')
I can fix my code to always put something in C, but I would like to
understand the problem.