MySQL: averaging with nulls...

Posted by Zombies on Stack Overflow See other posts from Stack Overflow or by Zombies
Published on 2010-03-19T21:32:53Z Indexed on 2010/03/19 22:41 UTC
Read the original article Hit count: 87

Filed under:
|

Is there a simple way I can exclude nulls from affecting the avg? They appear to count as 0, which is not what I want. I simply don't want to take their average into account, yet here is the catch, I can't drop them from the result set, as that record has data on it that I do need.

© Stack Overflow or respective owner

Related posts about mysql

Related posts about sql