Quote:
Originally Posted by acctman
what does 'hiccough' never seen that used in a sql statement before
|
thank you, thank you very much, i am glad that you asked me because not everyone does, when i post this solution
you could substitute 'hiccup' if that helps
actually you could substitute any non-null value, and sometimes i write it like this --
Code:
HAVING COUNT(CASE WHEN i_status = 2
THEN 937 END) = 0
and of course the ELSE value is NULL by default
now all you have to do is take this knowledge of NULL versus not NULL, armed with the fact that aggregate functions do not include NULLs, and consider that the aggregate function in this instance is COUNT...
let me know if that makes sense
